我正尝试通过以下链接https://github.com/rstudio/sparklyr/releases/tag/v0.8.4安装最新版本的Sparklyr“ 0.8.4”。
install.packages("C:/Users/USER/Downloads/sparklyr-0.8.4.tar.gz", repos = NULL, type="source")
然后出现以下消息
Installing package into ‘C:/Users/USER/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers
* installing *source* package 'sparklyr' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (sparklyr)
In R CMD INSTALL
packageVersion("sparklyr")
[1] ‘0.8.4’
我收到以下错误
> library(sparklyr)
Error: package or namespace load failed for ‘sparklyr’ in get(method, envir = home):
lazy-load database 'C:/Users/USER/Documents/R/win-library/3.4/sparklyr/R/sparklyr.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], :
restarting interrupted promise evaluation
2: In get(method, envir = home) :
restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1
任何解决该错误的方法。
注意:我的R.version
是3.4.4,我的Spark 2.3.1版本是
答案 0 :(得分:0)
首先删除旧版本的 sparklyr 0.7 ,然后重新启动Rstudio,最后使用以下代码,该代码从CRAN安装最新版本。
install.packages("https://cran.r-project.org/src/contrib/sparklyr_0.8.4.tar.gz", repos = NULL, type="source")