Created
October 13, 2023 13:44
-
-
Save hannesdatta/b121672164b9747ef248a23d5c769174 to your computer and use it in GitHub Desktop.
starting up R from the command line/terminal
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
R --vanilla < "filename.R" # you see output on screen | |
Rscript filename.R # no output, unless explicitly "print"-ed | |
R -e "unlink(*.*)" # executes one R command | |
R -e "rmarkdown::render('filename.Rmd', output_file='../paper/output/filename.pdf')" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment