Skip to content

Instantly share code, notes, and snippets.

@mjul
Created June 2, 2016 08:53
Show Gist options
  • Save mjul/f26df39649995f8b35a4874bc32c65e4 to your computer and use it in GitHub Desktop.
Save mjul/f26df39649995f8b35a4874bc32c65e4 to your computer and use it in GitHub Desktop.
Running R scripts in a Docker container
FROM r-base:latest
COPY . /usr/local/src/myscripts
WORKDIR /usr/local/src/myscripts
CMD ["Rscript", "myscript.R"]
print('Hello, world!')
@Mohith200023
Copy link

when I run the r script code in docker I am getting this ERROR: R_HOME ('/usr/local/lib/R') not found. if you have any suggestions to solve this error . can you reply me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment