Blog Archives

carbonate

October 28, 2018
By
carbonate

carbon.js is the easiest way to create beautiful images of your source code, and carbonate creates an api in R to interact with it. The package gives a new simple way to share your script with the rest of the R community on posters, slides, Shiny apps and social media! This little snippet combines SO MANY of my favorite #rstats...

Read more »

RStudio Addin Manager

January 14, 2018
By
RStudio Addin Manager

rsam provides a command line and user interface to manage RStudio addins. You can show or hide the addins in the RStudio IDE dropdown menu and set keyboard shortcuts for them. Installation Since rsam manages the RStudio addins it must write to disk. For this reason the package cannot be hosted on CRAN. #install.packages('remotes') remotes::install_github('yonicd/rsam') Usage library(rsam) User Interface The user interface is a shiny application that...

Read more »

Firearms Sourced and Recovered in the United States and Territories 2010-2016

November 6, 2017
By
Firearms Sourced and Recovered in the United States and Territories 2010-2016

I want to try and probe a question that was raised since Las Vegas and now revived due to the tragedy in Sutherland Springs,TX: Given the free trade between states, can a state unilaterally regulate firearms. This post will try to start to give an answer to this question using R. Since there is not an open electronic federal database...

Read more »

Extending slackr

October 24, 2017
By
Extending slackr

The slackr package, by Bob Rudis, contains functions that make it possible to interact with the Slack messaging platform. The great part of Slack is that it has mobile devices application interface. We take advantage of this by extending slackr’s interaction with with the server: Write to a channel (current) - slackr Compile TeX snippets directly to a channel - tex_slackr tex_slackr(xtable::xtable(mtcars)) This...

Read more »

jsTree htmlwidget

October 23, 2017
By

jsTree is a R package that is a standalone htmlwidget for the jsTree JavaScript library. It can be run from the R console directly into the Rstudio Viewer, be used in a Shiny application or be part of an Rmarkdown html output. Installation #CRAN install.packages('jsTree') #Github devtools::install_github('metrumresearchgroup/jsTree') The motivation for the package came from the shinyTree by Jeff Allen, which has an early version of...

Read more »

Combining Github Traffic Plots Across Repositories

October 1, 2017
By
Combining Github Traffic Plots Across Repositories

This post will show how to use the RSelenium package to scrape your own github account to retrieve all that fun traffic data of clones and visits and create a single traffic plot for your account. For the single file you can find it in this gist file. Packages library(RSelenium) library(XML) library(ggplot2) library(reshape2) library(plyr) library(dplyr) Fill in the relevant information for your account. The team is usually your...

Read more »

Regular Expression Searching within Shiny Selectize Objects

September 25, 2017
By
Regular Expression Searching within Shiny Selectize Objects

regexSelect is a small package that uses Shiny modules to solve a problem in Shiny selectize objects - regular expression (regex) searching. You can quickly filter the values in the selectize object, while being able to add that new regex query to the selectize list. This is great for long lists, since you can return multiple item simultaneously without needing...

Read more »

What is the appropriate population scaling of the Affordable Care Act Funding?

September 25, 2017
By
What is the appropriate population scaling of the Affordable Care Act Funding?

I have been trying to decipher for myself, what is in the current (well, yesterday’s) Graham-Cassidy health care bill. I saw this image on many news outlets a few days ago and my inner hate for pie charts bubbled up. This is a zoom in on the pie chart … From what I can gather, these figures are attempting to...

Read more »

Automating roxygen2 package documentation

September 17, 2017
By
Automating roxygen2 package documentation

Thinking of creating a new package? Dread the task of function documentation? Afraid to run devtools::check(build_args = '--as-cran') and get bombarded by Errors, Warnings, and Notes (oh my!) ? Wait…. breathe! After feeling all that anxiety and following all of Hadley’s directions online, I felt I was doing a lot of manual labour, and that a package should be doing...

Read more »

Sinew: a R Package to create self-populating roxygen2 skeletons

May 3, 2017
By

Sinew is a R package that generates a roxygen2 skeletons populated with information scraped from within the function script. The goal of the package is to automate nearly all of the mundane tasks needed to document functions, properly set up the import fields for oxygenation, and make it easier to attain documentation consistency across functions.  Functionality makeOxygen: … Continue reading Sinew:...

Read more »

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)