[Rd] help with install.packages

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Aug 2 11:54:11 CEST 2012



On 02.08.2012 10:33, luxInteg wrote:
> Greetings,
>
> I am trying to use install.packages  obtained from here
> http://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html
> My computer has these
> OS: 64-bit blfs linux R2.15.1
>
> #------------
> A) I did the following:-
>
> export DIR=/home/stats/R-2.15.0_runTEST190712A
> export DEST=/home/stats/Rtester
> cd $DEST
>
> ${DIR}/bin/R install.packages(MASS_7.3-17.tar.gz, ${DEST}, repos =
> getOption("NULL"),
>                   contriburl = contrib.url(NULL, type),
>                   internal, available = NULL, destdir = ${DEST},
>                   dependencies = NA, type = getOption("pkgType"),
>                   configure.args = getOption("configure.args"),
>                   configure.vars = getOption("configure.vars"),
>                   clean = FALSE, Ncpus = getOption("2", 1L),
>                   libs_only = FALSE, INSTALL_opts,--verbose)
>
> and this is the result
>
> stats [ ~ ]# export DIR=/home/stats/R-2.15.0_runTEST190712A
> stats [ ~ ]# export DEST=/home/stats/Rtester
> stats [ ~ ]# cd $DEST
> stats [ ~/Rtester ]#
> stats [ ~/Rtester ]# ${DIR}/bin/R install.packages(MASS_7.3-17.tar.gz,
> ${DEST}, repos = getOption("NULL"),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]#                  contriburl = contrib.url(NULL, type),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]#                  internal, available = NULL, destdir =
> ${DEST},
> bash: internal,: command not found
> stats [ ~/Rtester ]#                  dependencies = NA, type =
> getOption("pkgType"),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]#                  configure.args =
> getOption("configure.args"),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]#                  configure.vars =
> getOption("configure.vars"),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]#                  clean = FALSE, Ncpus = getOption("2",
> 1L),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]#                  libs_only = FALSE, INSTALL_opts,--
> verbose)
>
>
> B)  I then did  it like so
> export DIR=/home/stats/R-2.15.0_runTEST190712A
> export DEST=/home/stats/Rtester
> cd $DEST
>
> ${DIR}/bin/R install.packages(MASS_7.3-17.tar.gz, ${DEST}, repos =
> getOption("NULL"),
> contriburl = contrib.url(NULL, type),
> method, available = NULL, destdir = ${DEST,
> dependencies = NA, type = getOption("source"),
> clean = FALSE, Ncpus = getOption("2", 1L),
> libs_only = FALSE, INSTALL_opts, --verbose )
>
> And this results:-
>
> stats [ ~/Rtester ]# export DIR=/home/stats/R-2.15.0_runTEST190712A
> stats [ ~/Rtester ]# export DEST=/home/stats/Rtester
> stats [ ~/Rtester ]# cd $DEST
> stats [ ~/Rtester ]#
> stats [ ~/Rtester ]# ${DIR}/bin/R install.packages(MASS_7.3-17.tar.gz,
> ${DEST}, repos = getOption("NULL"),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]# contriburl = contrib.url(NULL, type),
> bash: syntax error near unexpected token `('
> stats [ ~/Rtester ]# method, available = NULL, destdir = ${DEST,
>> dependencies = NA, type = getOption("source"),
>> configure.args = getOption("configure.args"),
>> configure.vars = getOption("configure.vars"),
>> clean = FALSE, Ncpus = getOption("2", 1L),
>> libs_only = FALSE, INSTALL_opts, --verbose )
>
> #-----------------------
>
> advice would be appreciated


Please ask basic questions on R-help and do not misuse R-devel.
And following the posting guide of R-help, you had probably read the 
documentation and found that install.packages() is to be called in R 
rather than on the shell of your operating system.

Best,
Uwe Ligges






>
> sincerely
> luxInteg
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list