Cannot install "plm package" in rstudio

Hello,

I am having trouble with installing of "plm" package.
The package was installed by using the command:
install.packages("plm").
During installing the following error message appeared:

Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\myname\Documents\R\win-library\3.4" C:\Users\myname\AppData\Local\Temp\RtmpYFsA6E/downloaded_packages/plm_2.2-3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘plm’ had non-zero exit status

When "install.packages (" plm ")" is executed, the following message is displayed:
library(plm)
Error in library(plm) : there is no package called ‘plm’.

Could you, please, help me with the problem.
I use Windows 10 Pro.

I've seen similar problems when myname has non English alphabetic characters

1 Like

Thank you for a hint but the name is definetely ok!

Can you show the whole error message you are getting? I believe you are omitting the important parts.

1 Like

You`re right,
here is the full warning message:


install.packages("plm")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:


https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/myname/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependency ‘Rdpack’


  There are binary versions available but the source versions are later:
       binary source needs_compilation
Rdpack 0.11-0 0.11-1             FALSE
plm     1.7-0  2.2-3             FALSE

installing the source packages ‘Rdpack’, ‘plm’

trying URL 'https://cran.rstudio.com/src/contrib/Rdpack_0.11-1.tar.gz'
Content type 'application/x-gzip' length 693897 bytes (677 KB)
downloaded 677 KB

trying URL 'https://cran.rstudio.com/src/contrib/plm_2.2-3.tar.gz'
Content type 'application/x-gzip' length 1635664 bytes (1.6 MB)
downloaded 1.6 MB

* installing *source* package 'Rdpack' ...
** package 'Rdpack' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
  converting help for package 'Rdpack'
    finding HTML links ... done
    RStudio_reprompt                        html  
    Rd_combo                                html  
    Rdapply                                 html  
    Rdo2Rdf                                 html  
    Rdo_append_argument                     html  
    Rdo_collect_metadata                    html  
    Rdo_empty_sections                      html  
    Rdo_fetch                               html  
    Rdo_flatinsert                          html  
    Rdo_get_argument_names                  html  
    Rdo_get_insert_pos                      html  
    Rdo_get_item_labels                     html  
    Rdo_insert                              html  
    Rdo_insert_element                      html  
    Rdo_is_newline                          html  
    Rdo_locate                              html  
    Rdo_locate_leaves                       html  
    Rdo_macro                               html  
    Rdo_modify                              html  
    Rdo_modify_simple                       html  
    Rdo_piecetag                            html  
    Rdo_remove_srcref                       html  
    Rdo_reparse                             html  
    Rdo_sections                            html  
    Rdo_set_section                         html  
    Rdo_show                                html  
    Rdo_tag                                 html  
    Rdo_tags                                html  
    Rdo_which                               html  
    Rdpack-package                          html  
Error: argument is of length zero
* removing 'C:/Users/myname/Documents/R/win-library/3.4/Rdpack'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\myname\Documents\R\win-library\3.4" C:\Users\myname\AppData\Local\Temp\RtmpacrycR/downloaded_packages/Rdpack_0.11-1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘Rdpack’ had non-zero exit status
ERROR: dependency 'Rdpack' is not available for package 'plm'
* removing 'C:/Users/myname/Documents/R/win-library/3.4/plm'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\myname\Documents\R\win-library\3.4" C:\Users\myname\AppData\Local\Temp\RtmpacrycR/downloaded_packages/plm_2.2-3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘plm’ had non-zero exit status

UPD: I have successfully installed Rtools right now as RStudio asked me but I cannot open and install Rdpack since it has .tar.gz.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.