Skip to content

Installation Issue

Created by: jpmill09

I've tried installing the dataRetrieval package and have had a few issues. For reference my R version is [Default] [32-bit] C:\Program Files\R\R-3.2.3.

I received the following message when attempting to install the package:

There is a binary version available but the source version is later:
              binary source needs_compilation
dataRetrieval  2.6.3  2.7.3             FALSE

installing the source package ‘dataRetrieval’

trying URL 'https://cran.rstudio.com/src/contrib/dataRetrieval_2.7.3.tar.gz'
Content type 'application/x-gzip' length 711596 bytes (694 KB)
downloaded 694 KB

* installing *source* package 'dataRetrieval' ...
** package 'dataRetrieval' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called 'DBI'
ERROR: lazy loading failed for package 'dataRetrieval'
* removing 'C:/Program Files/R/R-3.2.3/library/dataRetrieval'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\JOHN~1.MIL\AppData\Local\Temp\RtmpMlNV71/downloaded_packages/dataRetrieval_2.7.3.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘dataRetrieval’ had non-zero exit status

I noticed it said there was no package called 'DBI', so I installed the DBI package and then attempted to install the package again. I then received the following feedback.**

>  ```
>  There is a binary version available but the source version is later:
>                binary source needs_compilation
>  dataRetrieval  2.6.3  2.7.3             FALSE
>  
>  installing the source package ‘dataRetrieval’
>  
>  trying URL 'https://cran.rstudio.com/src/contrib/dataRetrieval_2.7.3.tar.gz'
>  Content type 'application/x-gzip' length 711596 bytes (694 KB)
>  downloaded 694 KB
> 
> ```
> 
> ```
> 
>  * installing *source* package 'dataRetrieval' ...
>  ** package 'dataRetrieval' successfully unpacked and MD5 sums checked
>  ** R
>  ** inst
>  ** preparing package for lazy loading
>  Note: the specification for S3 class "AsIs" in package 'jsonlite' seems equivalent to one from package 'DBI': not turning on duplicate class definitions for this class.
>  Note: the specification for S3 class "difftime" in package 'lubridate' seems equivalent to one from package 'DBI': not turning on duplicate class definitions for this class.
>  Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
>    there is no package called 'hms'
>  ERROR: lazy loading failed for package 'dataRetrieval'
>  * removing 'C:/Program Files/R/R-3.2.3/library/dataRetrieval'
>  Warning in install.packages :
>    running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\JOHN~1.MIL\AppData\Local\Temp\RtmpMlNV71/downloaded_packages/dataRetrieval_2.7.3.tar.gz' had status 1
>  Warning in install.packages :
>    installation of package ‘dataRetrieval’ had non-zero exit status

I then attempted to install HMS.


>  install.packages("hms")
> also installing the dependency ‘rlang’
> 
> 
>   There is a binary version available but the source version is later:
>     binary source needs_compilation
> hms    0.3  0.4.1             FALSE
> 
> Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘rlang’
>   These will not be installed
> installing the source package ‘hms’
> 
> trying URL 'https://cran.rstudio.com/src/contrib/hms_0.4.1.tar.gz'
> Content type 'application/x-gzip' length 12772 bytes (12 KB)
> downloaded 12 KB
> 
> ERROR: dependency 'rlang' is not available for package 'hms'
> * removing 'C:/Program Files/R/R-3.2.3/library/hms'
> Warning in install.packages :
>   running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\JOHN~1.MIL\AppData\Local\Temp\RtmpMlNV71/downloaded_packages/hms_0.4.1.tar.gz' had status 1
> Warning in install.packages :
>   installation of package ‘hms’ had non-zero exit status
> 
> > install.packages("rlang")
> Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘rlang’
>   These will not be installed
> > 
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information