[R] A couple of batch mode questions
er|cjberger @end|ng |rom gm@||@com
Wed Jul 25 21:48:03 CEST 2018
You should be able to do all this within R.
>From what you have written I don't see a compelling reason to use scripts
at the shell level.
On Wed, Jul 25, 2018 at 9:41 PM, Rich Shepard <rshepard using appl-ecosys.com>
> On Wed, 25 Jul 2018, Eric Berger wrote:
> 1. For R scripts you should also consider the package littler developed by
>> Dirk Eddelbuettel, Highly recommended. For info
>> http://dirk.eddelbuettel.com/code/littler.html or the github repository.
> I'll definintely look at that package.
> 2. Scripts can be useful both for short calculations, extending the shell,
>> or for large R jobs that are not interactive and can run unsupervised.
>> e.g. I have a script that is run automatically on a daily schedule. It
>> performs a number of calculations and updates a database with the results.
> My immediate need is to import 30 data files, change factors into dates
> and datetimes, print a summary, then plot a PDF scatterplot. This is why I
> need to learn Rscript. I should be able to wrap that in a bash shell
> script's for ... do loop that runs the Rscript for all *.dat files in the
> Much appreciated,
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posti
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help