From a bash script would I like to execute these R commands
install.packages('knitr', dependencies = TRUE)
install.packages("xlsx", dependencies="Depends")
install.packages("xtable")
One way would be to put them in a R file, then execute that, but I would prefer not to do that.
Can these commands be executed directly from a Bash script?
apt-get -y install littler
echo 'install.packages("knitr", dependencies = TRUE, repos="http://cran.rstudio.com/")' | r
R -e can also be used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With