gpt4 book ai didi

rstudio - 安装 RSQLite 时如何修复“找不到 "' blob”包?

转载 作者:行者123 更新时间:2023-12-02 00:51:31 25 4
gpt4 key购买 nike

我想使用 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’

有办法解决这个问题吗?

我尝试更新 RSQLite 库,但没有任何改变,并且我尝试安装 blob 包,但没有成功。

它说“警告 install.packages “blob”包的安装具有非零退出状态”

我尝试使用以下方法安装 RSQLite 包:

install.packages("RSQLite")

这是输出:

Installing package into C:/Users/malik/OneDrive/Documents/R/win-library/3.4
(as lib is unspecified)
also installing the dependencies ellipsis, rlang, vctrs, blob


There are binary versions available but the source versions are later:
binary source needs_compilation
ellipsis 0.1.0 0.2.0.1 TRUE
rlang 0.3.4 0.4.0 TRUE
vctrs 0.1.0 0.2.0 TRUE
blob 1.1.1 1.2.0 FALSE
RSQLite 2.1.1 2.1.2 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

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\malik\AppData\Local\Temp\RtmpOsEBnR\downloaded_packages
installing the source package �blob�

trying URL 'https://cran.rstudio.com/src/contrib/blob_1.2.0.tar.gz'
Content type 'application/x-gzip' length 9355 bytes
downloaded 9355 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.0 is required
ERROR: lazy loading failed for package 'blob'
* removing 'C:/Users/malik/OneDrive/Documents/R/win-library/3.4/blob'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\malik\OneDrive\Documents\R\win-library\3.4" C:\Users\malik\AppData\Local\Temp\RtmpOsEBnR/downloaded_packages/blob_1.2.0.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\malik\AppData\Local\Temp\RtmpOsEBnR\downloaded_packages’

当我尝试使用 RSQLite 库时,出现此错误:

我想使用这个库,但它不让我使用。

最佳答案

试试这个..

library(remotes)
install_github("cran/blob")
install_github("cran/RSQLite")

它对我有用............

关于rstudio - 安装 RSQLite 时如何修复“找不到 "' blob”包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57228037/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com