problem when installing a R package

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

problem when installing a R package

pmouilhade
Hello all and happy new year !!!

I had a package that worked fine but since I switched to R 2.15.2, It is not compatible anymore (I have the error message: not installed for 'arch=i386').

I have therefore updated Rtools 2.16 and Path variables as follow:
PATH=C:\Rtools\bin;C:\Perl\bin;C\Rtools\MinGW\bin;C:\PROGRA~1\R\R-2.15.2\bin\i38
6;C:\PROGRA~1\R\R-2.15.2\include;C:\PROGRA~1\MIKTEX~2.9\miktex\bin;C:\WINDOWS;C:
\WINDOWS\system32;C:\Rtools\gcc-4.6.3\bin;C:\Rtools\gcc-4.6.3\bin32

When I run the following cmd I have an error
C:\tmp>R CMD INSTALL --build DistributionS4


* installing to library 'C:/Program Files/R/R-2.15.2/library'
* installing *source* package 'DistributionS4' ...
** libs
cygwin warning:
  MS-DOS style path detected: C:/PROGRA~1/R/R-2.15.2/etc/i386/Makeconf
  Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-2.15.2/etc/i386/Makeco
nf
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
make: Nothing to be done for `all'.
installation dans C:/Program Files/R/R-2.15.2/library/DistributionS4/libs/i386
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Fatal error: cannot open file 'C:\DOCUME~1\p-mouilhade\Local': Permission denied



ERREUR : loading failed
* removing 'C:/Program Files/R/R-2.15.2/library/DistributionS4'
* restoring previous 'C:/Program Files/R/R-2.15.2/library/DistributionS4'

I don't know what's going on, why permission is denied and why is it trying to reach such a directory (which by the way exists).

Can somebody help me ???

Many thanks in advance

Reply | Threaded
Open this post in threaded view
|

Re: problem when installing a R package

pmouilhade
Hi everybody,

I have tried the following command to skip the load test:
R CMD INSTALL --build --no-test-load DistributionS4

Now the error is the excution of "zip" failed...

Any clue ?
Reply | Threaded
Open this post in threaded view
|

Re: problem when installing a R package

Uwe Ligges-3
In reply to this post by pmouilhade


On 02.01.2013 13:06, pmouilhade wrote:

> Hello all and happy new year !!!
>
> I had a package that worked fine but since I switched to R 2.15.2, It is not
> compatible anymore (I have the error message: not installed for
> 'arch=i386').
>
> I have therefore updated Rtools 2.16 and Path variables as follow:
> PATH=C:\Rtools\bin;C:\Perl\bin;C\Rtools\MinGW\bin;C:\PROGRA~1\R\R-2.15.2\bin\i38
> 6;C:\PROGRA~1\R\R-2.15.2\include;C:\PROGRA~1\MIKTEX~2.9\miktex\bin;C:\WINDOWS;C:
> \WINDOWS\system32;C:\Rtools\gcc-4.6.3\bin;C:\Rtools\gcc-4.6.3\bin32
>
> When I run the following cmd I have an error
> C:\tmp>R CMD INSTALL --build DistributionS4
>
>
> * installing to library 'C:/Program Files/R/R-2.15.2/library'
> * installing *source* package 'DistributionS4' ...
> ** libs
> cygwin warning:
>    MS-DOS style path detected: C:/PROGRA~1/R/R-2.15.2/etc/i386/Makeconf
>    Preferred POSIX equivalent is:
> /cygdrive/c/PROGRA~1/R/R-2.15.2/etc/i386/Makeco
> nf
>    CYGWIN environment variable option "nodosfilewarning" turns off this
> warning.

I'd suggest to do what this warning tells you.


>    Consult the user's guide for more details about POSIX paths:
>      http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> make: Nothing to be done for `all'.
> installation dans C:/Program
> Files/R/R-2.15.2/library/DistributionS4/libs/i386
> ** R
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> *** testing if installed package can be loaded
> Fatal error: cannot open file 'C:\DOCUME~1\p-mouilhade\Local': Permission
> denied*

Not sure what this directory is about and why it is accessed, but you
could check if you have some permission problems in that folder.

You can turn off the checks for loading to get an installation for
testing purposes, see
R CMD INSTALL --help

Best,
Uwe Ligges


>
> ERREUR : loading failed
> * removing 'C:/Program Files/R/R-2.15.2/library/DistributionS4'
> * restoring previous 'C:/Program Files/R/R-2.15.2/library/DistributionS4'
>
> I don't know what's going on, why permission is denied and why is it trying
> to reach such a directory (which by the way exists).
>
> Can somebody help me ???
>
> Many thanks in advance
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/problem-when-installing-a-R-package-tp4654404.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: problem when installing a R package

Uwe Ligges-3
In reply to this post by pmouilhade


On 02.01.2013 14:38, pmouilhade wrote:
> Hi everybody,
>
> I have tried the following command to skip the load test:
> R CMD INSTALL --build --no-test-load DistributionS4


I missed this message before.

> Now the error is the excution of "zip" failed...

So your Rtools are not properly installed?

Uwe Ligges


> Any clue ?
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/problem-when-installing-a-R-package-tp4654404p4654408.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.