Tag Archives: R

How to generate a PDF reference of an R package

If you have the Rd files in a man directory, then in a shell command, you can use this command: R CMD Rd2dvi –pdf –title=’Test of foo’ -o /tmp/foo.pdf man/*.RdR CMD Rd2dvi –pdf –title=’Test of foo’ -o /tmp/foo.pdf man/*.Rd

Posted in Computer Science | Tagged , | Leave a comment

R: how to use command line arguments from R scripts

If you want to script R with arguments, you can type (under a Linux shell): R –no-restore –no-save –args 10 < script.RR –no-restore –no-save –args 10 < script.R where –args is a list of arguments that you want to use … Continue reading

Posted in Computer Science | Tagged | Leave a comment

Missing package in rpy2 (ggplot2)

When using rpy2, the python implementation of R, I quickly came up with the issue of having missing packages (e.g., ggplot2) With a fresh installation of rpy2 (and R-core), if you type the following code in your python shell: from … Continue reading

Posted in Computer Science | Tagged , | 3 Comments