Creating a package in R using RStudio

package, r, rstudio

Solution

Start with following the steps in this video:

Build an R Package in under 2 minutes with RStudio

Then read more about RStudio's Package Development feature, and also Hadley Wickam's Package basics.

Problem

I've created a bunch of files: - init.r - auth.r - class.r - modules/status.r - modules/mgmt.r - modules/core.r - modules/mcf.r The source of the init.r file is: ``` # initiation of package # include libraries library(RCurl); library(rjson); # include files source('auth.r'); source('class.r'); # extend class source('modules/status.r'); source('modules/mgmt.r'); source('modules/core.r'); source('modules/mcf.r'); ``` How do I go about creating a package out of this? The init.r file obviously needs to be initiated first.

Original source