Just ahead of the New York R Conference this week, B23 is excited to release new features in our B23r package. Designed to enhance and fill gaps in R Server functionality with a suite of custom R functions, B23r is installed on every R and Sparklyr Stack launched through B23 Data Platform.
B23r allows R users to leverage Project workflow in combination with Packrat and a pre-set Amazon Web Services (AWS) S3 bucket connection to save and restore project environments across stacks or working sessions. Read our documentation.
B23r also contains a set of functionality for mediating development of Shiny applications by providing the necessary functions to deploy and update files on the Shiny Server file system without leaving the R Server IDE. Read our Shiny Development documentation.
B23r v0.1.6: Save Package Templates for use in Future Projects
Saving and restoring projects with B23r and AWS S3 is part of our essential cloud functional workflow, but what if you wanted to use the environment packages from one project to seed the empty environment of a new project?
B23r now supports the creation of package templates saved out to S3 which can then be reused in brand new projects.
Step 1: Save currently installed packages as a ‘Package Template’
- Come up with a descriptive name for the group of packages you want to save
- Verify that all the packages you want to include in the template are listed in your Packrat Library
- The B23r::savePkgTemplate function will save a copy of the
packrat.lockfile in your current project out to the AWS S3 bucket you have linked
Step 2: Reuse a saved package template in a new project
- Create a new project in RStudio: File > New Project…
- Navigate to
~/ingest-data/saved-templatesto view all your available package templates
- The B23r::initPkgTemplate function will create a
packrat.lockfile for your new project and install all the new packages
With only a few mouse clicks, the B23 Data Platform allows Data Analysts to acquire and analyze significantly large volumes of data securely in minutes. Our unique data automation technology allows users to gain immediate insights from a multitude of data sources—with the freedom to use familiar tools like Apache Spark, Apache Zeppelin, RStudio, H20 and Jupyter. If you’re interested in setting up B23 Data Platform for your organization, please reach out to email@example.com or visit us online www.b23.io.