The goal of rpkg.workshop is to download learning materials for Developing R Packages, as well as to install any required packages. rpkg.workshop also allows you to open a given module in RStudio Cloud.
You can install the latest version of rpkg.workshop with:
options(repos = c(
emptyfieldds = "https://emptyfield-ds.r-universe.dev",
CRAN = "https://cran.rstudio.com/"
))
install.packages("rpkg.workshop")use_module() will install the materials for a given module on your
computer. Then, it will open a new RStudio Project containing the files
you’ll need.
rpkg.workshop::use_module("module_name")By default, this package downloads the materials to a conspicuous place
like your Desktop. You can also tell use_module() exactly where to put
the materials with destdir:
rpkg.workshop::use_module("module_name", destdir = "a/path/on/your/computer")browse_cloud() opens a module in RStudio Cloud, where the materials
and all necessary tooling will be pre-installed. This requires an
RStudio Cloud account.
rpkg.workshop::browse_cloud("module_name")