Nothing Special   »   [go: up one dir, main page]

6- Use vmr for development

Develop using vmr package

vmr environment are clean and setup with R (and some with R-devel), Rtools and some dependencies.

You can use the GUI or use vmr functions to execute commands.

Information

To get guest information:

vmrInfo()

To send files to guest:

vmrSend(c("myfile1","myfile2"))

To send and/or run bash commands :

vmrProvision(cmd = c("./myscript.sh"), elts = c("myscript.sh"), dest = "/home/vmr/")

Run R commands

To execute a R command to guest:

vmrExec(c('print("HelloWorld")'))

To update and install R packages in guest:

vmrUpdatePackages()
vmrInstallPackages(pkg = c("vmr"))

Package development

With vmr you can test, and build a package in development using this functions:

To build, check and test:

# check a local package
vmrPackageCheck()
# Test it
vmrPackageTest()
# and create archive and package binary
vmrPackageBuild()

Vignette summary

  1. Working with vmr package
  2. Start my first environment
  3. Manage vmr environment
  4. Manage boxes
  5. Manage providers
  6. Development with vmr
  7. CI/CD
  8. Functions resume

Next vignette : 7-CI/CD