I have installed package xtable with
su -c 'R CMD INSTALL xtable'
and got this promising feedback:
* Installing *source* package 'xtable' ...
** R
** data
** help
>>> Building/Updating help pages for package 'xtable'
Formats: text html latex example
* DONE (xtable)
Despite that, R returns:
Error: couldn't find function "print.xtable"
Execution halted
when I call that function.
What have I done wrong? Do I have to activate the package everytime when I
start R?
Thank you in advance!
Have you load the package with library(xtable) before attempting? Andy> From: Mag. Ferri Leberl > > I have installed package xtable with > > su -c 'R CMD INSTALL xtable' > > and got this promising feedback: > > * Installing *source* package 'xtable' ... > ** R > ** data > ** help > >>> Building/Updating help pages for package 'xtable' > Formats: text html latex example > * DONE (xtable) > > Despite that, R returns: > > Error: couldn't find function "print.xtable" > Execution halted > > when I call that function. > What have I done wrong? Do I have to activate the package > everytime when I > start R? > Thank you in advance! > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >
You do have to load optional packages in each R session. See ?require But you can automate the loading; see ?Startup -Don At 6:46 PM +0200 8/30/05, Mag. Ferri Leberl wrote:>I have installed package xtable with > >su -c 'R CMD INSTALL xtable' > >and got this promising feedback: > >* Installing *source* package 'xtable' ... >** R >** data >** help > >>> Building/Updating help pages for package 'xtable' > Formats: text html latex example >* DONE (xtable) > >Despite that, R returns: > >Error: couldn't find function "print.xtable" >Execution halted > >when I call that function. >What have I done wrong? Do I have to activate the package everytime when I >start R? >Thank you in advance! > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA