Blob Package loading error in Rstudio 1.1.463 - Lazy loading failed error and installation of package 'blob' had non-zero exit status warning.

Hi. I am new to R and Rstudio. I have been trying to install Blob package in my Rstudio. However it is showing Lazy loading failed error and installation of package 'blob' had non-zero exit status warning. I have tried different ways of installing this package by referring the net. Still no use. Its driving me crazy. Somebody pls help.

Particulars:
OS - Windows 10 - 64 Bit version
R - 3.4.2
R-Studio : 1.1.463

Console status for your reference:

> # Compute key marketing indicators using SQL language
> library(sqldf)
Loading required package: RSQLite
Error: package or namespace load failed for ‘RSQLite’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘blob’
Error: package ‘RSQLite’ could not be loaded
In addition: Warning messages:
1: package ‘sqldf’ was built under R version 3.4.4 
2: package ‘RSQLite’ was built under R version 3.4.4 
> install.packages(c("RSQLite", "blob"))
Installing packages into ‘C:/Users/Vigneshwaran/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ellipsis’, ‘rlang’, ‘vctrs’

  There are binary versions available but the source versions are later:
         binary source needs_compilation
ellipsis  0.1.0  0.3.1              TRUE
rlang     0.3.4  0.4.6              TRUE
vctrs     0.1.0  0.3.1              TRUE
RSQLite   2.1.1  2.2.0              TRUE
blob      1.1.1  1.2.1             FALSE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/RSQLite_2.1.1.zip'
Content type 'application/zip' length 2097863 bytes (2.0 MB)
downloaded 2.0 MB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘RSQLite’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\Vigneshwaran\AppData\Local\Temp\Rtmp2nztME\downloaded_packages
installing the source package ‘blob’

trying URL 'https://cran.rstudio.com/src/contrib/blob_1.2.1.tar.gz'
Content type 'application/x-gzip' length 10099 bytes
downloaded 10099 bytes

* installing *source* package 'blob' ...
** package 'blob' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'vctrs' 0.1.0 is being loaded, but >= 0.2.1 is required
ERROR: lazy loading failed for package 'blob'
* removing 'C:/Users/Vigneshwaran/Documents/R/win-library/3.4/blob'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Vigneshwaran\Documents\R\win-library\3.4" C:\Users\VIGNES~1\AppData\Local\Temp\Rtmp2nztME/downloaded_packages/blob_1.2.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘blob’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\Vigneshwaran\AppData\Local\Temp\Rtmp2nztME\downloaded_packages’  

You are being asked to update vctrs package, Have you tried?

install.packages("vctrs") 
1 Like

I have tried updating the VCTRS package as well by first clicking on Packages -> Install -> VCTRS. After it is being installed I clicked on the update tab under Packages -> selected VCTRS and updated it from VCTRS 0.1.0 to 0.3.1. It is getting updated and showing the below mentioned result. But after this if i try to install Blob package it is again showing the same error as mentioned in the question.

PFB the code for your reference.

> install.packages("vctrs")
Installing package into ‘C:/Users/Vigneshwaran/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ellipsis’, ‘rlang’


  There are binary versions available but the source versions are later:
         binary source needs_compilation
ellipsis  0.1.0  0.3.1              TRUE
rlang     0.3.4  0.4.6              TRUE
vctrs     0.1.0  0.3.1              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\Vigneshwaran\AppData\Local\Temp\RtmpMJftI9\downloaded_packages

I just rectified it by doing the following steps.

  1. I uninstalled my older version of R i.e. R - 3.4.2 and installed a newer version i.e. R - 3.6.1. However I dint do any changes to my R-Studio.
  2. I downloaded VCTRS 0.3.1 and BLOB packages separately from the net and pasted those package folders explicitly in the source folder where other R packages exist.

Thanks for the help before @andresrcs

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