R

Introducing ‘tremendousr’

Tremendous is a platform that “empowers companies to buy, track and manage digital and physical payments.” This package provides a slightly-opinionated R interface for the ‘Tremendous’ API with, dare I say, tremendously intuitive functions for sending rewards and incentives directly from R.

Working with Google Sheets from R

In Google Sheets, a ‘spreadsheet’ is a file containing individual, often related, ‘worksheets’ (tabs). In this post, I briefly cover the distinction between these – and their correlate in Microsoft Excel – as well as highlight how to read/write data stored within or between worksheets. I share my thoughts on which method is better (whichever meets your use-case!) and introduce a utility function, wrapping the R package googlesheets4, for aggregating data from multiple worksheets.

Connecting Shiny with Google Drive & Sheets

An article on how to deploy a shiny application with an authorization token that allows you save data to Google Drive (and Google Sheets). I provide an example with a simple questionnaire made with my package shinysurveys. This process can be adapted for more complex data sets and other storage platforms like Dropbox or Box.com.

Disclaimer: I am not a security expert, and this method is likely not secure enough for sensitive data such as protected health information.

tremendousr

Tremendous is a platform that ‘empowers companies to buy, track and manage digital and physical payments.’ This package provides a slightly-opinionated R interface for the ‘Tremendous’ API with, dare I say, tremendously intuitive functions for sending rewards and incentives directly from R.

shinysurveys v0.2.0

Introducing shinysurveys v0.2.0, which has a lot of new (exciting!) features. Notably, support for custom input (question) types, multi-paged surveys, and automatic response aggregation. For a full list of changes and new features, check out the release notes.

Making a Multi-Paged shinysurvey

In this post, I document a new feature of shinysurveys v0.2.0: multi-paged surveys. Using a question set built-in to shinysurveys, I illustrate how to convert a single paged survey to a multi-paged one. For examples, these can be run with the functions demo_survey() and demo_survey_multipage().

Creating Your Own R Package ‘verse’

One of my favorite features of the tidyverse is the lovely message printed to the console when its loaded. I delved into their source code to see how to achieve that. In this post, I describe the end-product: metamakr, an R package development tool for easily creating your own package ‘verse’.

Temporary Storage in R

A brief blog post on how to use temporary files to write data, read and manipulate it, and then delete the original file for storage optimization. I describe the tempdir(), tempfile(), and unlink(), functions and the difference between file/directory paths and contents.

Extending shinysurveys with Custom Input Types

A brief blog post documenting a new feature of my package, shinysurveys, allowing users to define custom input types in their surveys. I walk through three examples: sliderInput(), dateInput(), and shinyWidgets::sliderTextInput().

Getting Started with shinyapps.io

A brief blog post describing how to publish your first Shiny application on RStudio’s platform, shinyapps.io. I walk-through with images how how to register your shinyapps.io account locally and use RStudio’s ‘click-to-deploy’ feature to easily share your interactive apps online.

Introducing ghee

Introducing my new package, ghee, a user-friendly wrapper for the {gh} package that provides client access to Github’s REST API for common tasks such as creating issues and inviting collaborators.

shinysurveys

shinysurveys provides easy-to-use, minimalistic code for creating and deploying surveys in R. It extends the shiny package and converts a table of questions into an interactive web-based application. Administering surveys with this package allows users to combine the computational tools of R with the interactivity of web applications. This synergy helps bridge the gap between data collection and data analysis.

ghee

ghee provides an interface to interact with GitHub, an online host for git repositories. GitHub is a popular platform for code collaboration and can be accessed using their REST API. ghee wraps the low-level API R package, gh, and provides a curated set of functions to help developers easily perform common GitHub tasks such as creating repositories and inviting collaborators.