run_file: Run R file in a Docker image of a platform and an R...

Description Usage Arguments Examples

View source: R/run.R

Description

Run R file in a Docker image of a platform and an R implementation

Usage

1
2
run_file(r_file, platform = "debian", r_implementation = "gnu-r",
  volumes = NULL, ...)

Arguments

r_file

A file of R code

platform

The platform name see supported_platforms

r_implementation

The R implementation name. See supported_Rs

volumes

Volume mapping from host to container

...

Parameters passed on to stevedore client creation and container running functions

Examples

1
2
3
4
5
6
## Not run: 
file_path <- system.file('extdata/test.R', package = 'altRnative')
run_file(file_path, 'debian', 'gnu-r')
run_file(file_path, 'not-debian', 'gnu-r')

## End(Not run)

ismailsunni/altRnative documentation built on April 1, 2020, 2:22 a.m.