[R] Problem in using 'plm' package after updating R

Uwe Ligges ||gge@ @end|ng |rom @t@t|@t|k@tu-dortmund@de
Tue Jun 4 15:41:53 CEST 2019


IN addition, you install to Documents\R\win-library\3.3 which suggest 
you have updated R but are still suing the old version 3.3.x?

Best,
Uwe Ligges

On 04.06.2019 14:47, peter dalgaard wrote:
> Looks like you are not equipped to install source packages, so don't....
> 
> Or, possibly, install from source has an unstated dependency on package "stringr" so try install that first.
> 
> -pd
> 
>> On 3 Jun 2019, at 05:38 , Wong David <david-wong912 using hotmail.com> wrote:
>>
>> Dear Madam/ Sir,
>>
>> After I tried to update the plm package based on the enclosure [i.e. download the package.soruces (tar.gz)], I still found the following errors as bold in black:
>>
>> "--- Please select a CRAN mirror for use in this session ---
>>
>>   There is a binary version available but the source version is later:
>>     binary source needs_compilation
>> plm  1.6-6  2.0-1             FALSE
>>
>> installing the source package ‘plm’
>>
>> trying URL 'https://mirror-hk.koddos.net/CRAN/src/contrib/plm_2.0-1.tar.gz'
>> Content type 'application/x-gzip' length 2343782 bytes (2.2 MB)
>> downloaded 2.2 MB
>>
>> * installing *source* package 'plm' ...
>> ** package 'plm' successfully unpacked and MD5 sums checked
>> ** R
>> ** data
>> ** inst
>> ** preparing package for lazy loading
>> Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
>>   there is no package called 'stringr'
>> ERROR: lazy loading failed for package 'plm'
>> * removing 'C:/Users/David Wong/Documents/R/win-library/3.3/plm'
>> * restoring previous 'C:/Users/David Wong/Documents/R/win-library/3.3/plm'
>>
>> The downloaded source packages are in
>>         ‘C:\Users\David Wong\AppData\Local\Temp\RtmpcPaQsM\downloaded_packages’
>> Warning messages:
>> 1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\David Wong\Documents\R\win-library\3.3" C:\Users\DAVIDW~1\AppData\Local\Temp\RtmpcPaQsM/downloaded_packages/plm_2.0-1.tar.gz' had status 1
>> 2: In install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
>>   installation of package ‘plm’ had non-zero exit status"
>>
>> Please help.
>>
>> Thanks and regards,
>> David Wong from Hong Kong
>>
>> ________________________________
>> 发件人: Wong David
>> 发送时间: 2019年5月31日 7:21
>> 收件人: r-help-owner using r-project.org; r-help using r-project.org
>> 主题: Problem in using 'plm' package after updating R
>>
>> Dear Madam/ Sir,
>>
>> After I updated the latest packages in R this afternoon, I found that I cannot use 'plm' package. The error messages are as follows:
>>
>> "R version 3.3.3 (2017-03-06) -- "Another Canoe"
>> Copyright (C) 2017 The R Foundation for Statistical Computing
>> Platform: i386-w64-mingw32/i386 (32-bit)
>>
>> R is free software and comes with ABSOLUTELY NO WARRANTY.
>> You are welcome to redistribute it under certain conditions.
>> Type 'license()' or 'licence()' for distribution details.
>>
>>   Natural language support but running in an English locale
>>
>> R is a collaborative project with many contributors.
>> Type 'contributors()' for more information and
>> 'citation()' on how to cite R or R packages in publications.
>>
>> Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help.
>> Type 'q()' to quit R.
>>
>> Warning: namespace ‘plm’ is not available and has been replaced by .GlobalEnv when processing object ‘inst_f’
>>
>> [Previously saved workspace restored]
>>
>>> utils:::menuInstallPkgs()
>> --- Please select a CRAN mirror for use in this session ---
>>
>>   There is a binary version available but the source version is later:
>>     binary source needs_compilation
>> plm  1.6-6  2.0-1             FALSE
>>
>> installing the source package ‘plm’
>>
>> trying URL 'https://mirror-hk.koddos.net/CRAN/src/contrib/plm_2.0-1.tar.gz'
>> Content type 'application/x-gzip' length 2343782 bytes (2.2 MB)
>> downloaded 2.2 MB
>>
>> * installing *source* package 'plm' ...
>> ** package 'plm' successfully unpacked and MD5 sums checked
>> ** R
>> ** data
>> ** inst
>> ** preparing package for lazy loading
>> Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
>>   there is no package called 'stringr'
>> ERROR: lazy loading failed for package 'plm'
>> * removing 'C:/Users/David Wong/Documents/R/win-library/3.3/plm'
>> * restoring previous 'C:/Users/David Wong/Documents/R/win-library/3.3/plm'
>>
>> The downloaded source packages are in
>>         ‘C:\Users\David Wong\AppData\Local\Temp\RtmpEdDjdI\downloaded_packages’
>> Warning messages:
>> 1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\David Wong\Documents\R\win-library\3.3" C:\Users\DAVIDW~1\AppData\Local\Temp\RtmpEdDjdI/downloaded_packages/plm_2.0-1.tar.gz' had status 1
>> 2: In install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
>>   installation of package ‘plm’ had non-zero exit status
>>> library(plm)
>> Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
>>   there is no package called ‘stringr’
>> Error: package or namespace load failed for ‘plm’
>>> help.start()
>> starting httpd help server ... done
>> If nothing happens, you should open ‘http://127.0.0.1:19429/doc/html/index.html’ yourself
>>
>> The error messages are highlighted in blue. Please assist.
>>
>> Thanks and regards,
>> David Wong
>>
>> <Plm package.pdf>______________________________________________
>> 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.
>



More information about the R-help mailing list