[R] only install.packages with type="source" will install packages

Marc Girondot m@rc_grt @end|ng |rom y@hoo@|r
Thu Sep 14 16:55:46 CEST 2023


Dear members,

Since #2 weeks I have a problem with install.packages() or 
update.packages():

It seems to work, I have no error, but when I run again 
update.packages(), the same package is proposed again.

Example:

 > update.packages()
insight :
  Version 0.19.3 installed in 
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
  Version 0.19.5 available at https://cran.irsn.fr
Update? (Oui/non/annuler) a
cancelled by user
 > install.packages("insight")
essai de l'URL 
'https://cran.irsn.fr/bin/macosx/big-sur-arm64/contrib/4.3/insight_0.19.3.tgz'
Content type 'application/x-gzip' length 2092645 bytes (2.0 MB)
==================================================
downloaded 2.0 MB
Les packages binaires téléchargés sont dans
     /tmp/RtmpDC1kqM/downloaded_packages
 > update.packages()
insight :
  Version 0.19.3 installed in 
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
  Version 0.19.5 available at https://cran.irsn.fr
Update? (Oui/non/annuler) a
cancelled by user

If I restart R, it gives the same result.

My .libPaths() is "normal":
[1] "/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library"

The solution is to install with type = "source"

 > install.packages("insight", type="source")
essai de l'URL 
'https://pbil.univ-lyon1.fr/CRAN/src/contrib/insight_0.19.5.tar.gz'
Content type 'application/x-gzip' length 935072 bytes (913 KB)
==================================================
downloaded 913 KB

* installing *source* package ‘insight’ ...
** package ‘insight’ correctement décompressé et sommes MD5 vérifiées
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation 
path
* DONE (insight)

Les packages source téléchargés sont dans
     ‘/private/tmp/RtmpA4I8sr/downloaded_packages’

Then update.packages() does not return insight package.

Have you an idea of what's happened ?

Thanks

Marc



More information about the R-help mailing list