Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Build Status

session2CO

R package to convert the output of sessionInfo() to lines of RUN Rscript ... code for Code Ocean.

Install

Before installing the package, you need to install the n2kanalysis and containerit packages from Github

# install devtools if not yet installed
# install.packages("devtools")
devtools::install_github("inbo/n2kanalysis")
devtools::install_github("o2r-project/containerit")

Afterward, you can install session2CO from GitHub:

devtools::install_github("DominikVogel/session2CO")

Usage

Code Ocean allows users to specify the R packages (and their version) to be included in a Docker Image. There is also a very handy frontend where users can specify their packages. However, if you want to include a lot of packages this might be difficult.

session2CO() therefore uses the information about the uses packages provided by R via the sessionInfo() function and creates the code that can be added to the Dockerfile.

Step by Step

  1. Create your CodeOcean Capsule
  2. Install session2CO
  3. Run all your scripts, so all necessary packages are loaded
  4. Store the sessionInfo in a new object: e.g. sess <- sessionInfo()
  5. Run session2CO: session2CO::session2CO(sess = sess, path = "sessioninfos.txt")
  6. Copy and paste the content of the created txt file to your Dockerfile
  7. Run your CodeOcean Capsule

About

R package to converts the output of sessionInfo() in Lines of RUN Rscript code for Code Ocean

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages