[R] only install.packages with type="source" will install packages
Jeff Newmiller
jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Thu Sep 14 17:25:23 CEST 2023
There is/was a discrepancy between versions in source form and in binary form for that package on the CRAN server. (The server that compiles binaries for MacOS has been stuck recently.) You declined (automatically or explicitly) to upgrade from source. This meant you kept an out-of-date binary version in your library when you declined. Updating from source brought you fully up-to-date.
This is normal. If you are not dying to stay on the bleeding edge, ignore the source-binary discrepancy that leaves you a bit behind... the binary on CRAN will eventually get updated.
On September 14, 2023 7:55:46 AM PDT, Marc Girondot via R-help <r-help using r-project.org> wrote:
>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
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.
--
Sent from my phone. Please excuse my brevity.
More information about the R-help
mailing list