From lux-integ at btconnect.com  Thu Aug  2 10:33:12 2012
From: lux-integ at btconnect.com (luxInteg)
Date: Thu, 2 Aug 2012 09:33:12 +0100
Subject: [Rd] help with install.packages
Message-ID: <201208020933.12733.lux-integ@btconnect.com>

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

sincerely
luxInteg



[Rd] help with install.packages
luxInteg