我试图通过代码在rstudio服务器中安装sqldf软件包
install.packages("sqldf")
但是当我尝试下载此文件时,出现以下错误
Installing package into ‘/home/mrshekar/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/sqldf_0.4-11.tar.gz'
Content type 'application/x-gzip' length 63097 bytes (61 KB)
==================================================
downloaded 61 KB
* installing *source* package ‘sqldf’ ...
** package ‘sqldf’ successfully unpacked and MD5 sums checked
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 method ‘format.SQLiteConnection’ was declared in NAMESPACE but not found
Error: package or namespace load failed for ‘RSQLite’ in library.dynam(lib, package, package.lib):
shared object ‘RSQLite.so’ not found
Error : package ‘RSQLite’ could not be loaded
ERROR: lazy loading failed for package ‘sqldf’
* removing ‘/home/mrshekar/R/x86_64-pc-linux-gnu-library/3.4/sqldf’
Warning in install.packages :
installation of package ‘sqldf’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpJSQqsy/downloaded_packages’
据我所知,RSQLite软件包存在问题,但已单独下载,它也出现在我的软件包选项卡中。如果我做错了什么错误?请帮忙。谢谢!
答案 0 :(得分:1)
我有类似的问题。检查您的RSQLite软件包。它已下载,但也无法使用。尝试删除该软件包,然后再次安装。
之后,再次安装sqldf软件包。这似乎对我来说正常。
答案 1 :(得分:1)
问题不在于此。 sqldf软件包将安装RSQLite软件包。现在我已经安装了它,并且正如您正确指出的那样,关于RSQLite软件包未正确安装的错误,即使我在删除RSQLite软件包之后才刚刚安装了sqldf软件包,也就足够了。无需再次安装RSQLite软件包。但是谢谢你。