Ok, looks like I can do what I want with --args, commandArgs() and an appropiate .First.
Thanks, Zhou On Mon, Jan 12, 2009 at 2:27 PM, David Winsemius <dwinsem...@comcast.net> wrote: > See if this material is helpful: > > http://cran.r-project.org/doc/manuals/R-intro.html#Invoking-R-from-the-command-line > > -- David Winsemius > > On Jan 12, 2009, at 7:24 AM, Zhou Fang wrote: > >> That's not really what I meant by 'command line'. I meant, well, >> loading from e.g. a bash shell, not from within an interactive R >> session itself. >> >> Thanks anyways, >> >> Zhou >> >> (Possibly this email was sent twice. Apologies) >> >> On Mon, Jan 12, 2009 at 12:15 PM, Henrique Dallazuanna <www...@gmail.com> >> wrote: >>> >>> See ?load >>> >>> On Mon, Jan 12, 2009 at 10:12 AM, Zhou Fang <zhou.zf...@gmail.com> wrote: >>>> >>>> Hi, >>>> >>>> Is there any way to load workspaces (e.g. stuff from save.image) from >>>> the command line? I'm on Linux, and would find this very helpful. >>>> >>>> I'm guessing this functionality can be duplicated with a skillful bash >>>> script to rename the particular file to .RData (and then back once R >>>> terminates), but I'm wondering if there's a better way. >>>> >>>> Zhou Fang >>>> >>>> ______________________________________________ >>>> R-help@r-project.org mailing list >>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>> PLEASE do read the posting guide >>>> http://www.R-project.org/posting-guide.html >>>> and provide commented, minimal, self-contained, reproducible code. >>> >>> >>> >>> -- >>> Henrique Dallazuanna >>> Curitiba-Paraná-Brasil >>> 25° 25' 40" S 49° 16' 22" O >>> >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.