Created
June 2, 2016 08:53
-
-
Save mjul/f26df39649995f8b35a4874bc32c65e4 to your computer and use it in GitHub Desktop.
Running R scripts in a Docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM r-base:latest | |
COPY . /usr/local/src/myscripts | |
WORKDIR /usr/local/src/myscripts | |
CMD ["Rscript", "myscript.R"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('Hello, world!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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