[R-sig-Debian] Howto compile chemometrics package from source

Douglas Bates bates at stat.wisc.edu
Mon Sep 27 22:15:25 CEST 2010


On Mon, Sep 27, 2010 at 2:30 PM, Jose Brasil <c2o.pro.br at gmail.com> wrote:
> Dear friends,
>
> I'm confused about how to install packages from source.
>
> I just updated R in Lenny from http://cran.fiocruz.br/bin/linux/debian/
>
> I included in sources.list:
>
> deb http://cran.fiocruz.br/bin/linux/debian lenny-cran/
> deb-src  http://cran.fiocruz.br/bin/linux/debian lenny-cran/
>
> Then:
> apt-get update
> apt-get install r-base r-base-dev
>
> Then I downloaded the package chemometrics_0.8.tar.gz  from
> http://cran.r-project.org/src/contrib/chemometrics_0.8.tar.gz
>
> After untar I copied the dir chemometrics to /usr/lib/R/library and
> tried install.package(chemometrics) from R prompt (as root):

Don't copy the package to /usr/lib/R/library.  In fact, you don't even
need to untar it.  Copy it to a convenient location, say /tmp then cd
to that directory and run

R CMD INSTALL chemometrics_0.8.tar.gz

> install.packages(chemometrics)
> Erro em install.packages(chemometrics) :
>  objeto 'chemometrics' não encontrado
>
> Could anyone give any help?
>
> Thanks in advance,
> Jose
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>



More information about the R-SIG-Debian mailing list