簡體   English   中英

無法在R Studio中加載SWIRL軟件包

[英]Unable to load SWIRL package in R Studio

加載漩渦包裝時出現以下錯誤

library("swirl", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.2")
Error : .onAttach failed in attachNamespace() for 'swirl', details:
call: str_c(..., sep = " ")
error: lazy-load database '/home/ganesh/R/x86_64-pc-linux-gnu-library  /3.2/stringi/R/stringi.rdb' is corrupt
In addition: Warning messages:
1: In str_c(..., sep = " ") : restarting interrupted promise evaluation
2: In str_c(..., sep = " ") : internal error -3 in R_decompress1
Error: package or namespace load failed for ‘swirl’

如您所見,R版本是3.2,它在Ubuntu 15.04 64位上運行。

請求您的幫助。

謝謝

加內什

Ubuntu 15.04也在這里,一切都很好:

edd@max:~$ install.r swirl          ## install.r is part of littler
trying URL 'https://cran.rstudio.com/src/contrib/swirl_2.2.21.tar.gz'
Content type 'application/x-gzip' length 51037 bytes (49 KB)
==================================================
downloaded 49 KB

* installing *source* package ‘swirl’ ...
** package ‘swirl’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (swirl)

The downloaded source packages are in
        ‘/tmp/downloaded_packages’
edd@max:~$ r -e 'library(swirl); cat("All OK\n")'

| Hi! I see that you have some variables saved in your workspace. To keep
| things running smoothly, I recommend you clean up before starting swirl.

| Type ls() to see a list of the variables in your workspace. Then, type
| rm(list=ls()) to clear your workspace.

| Type swirl() when you are ready to begin.

All OK
edd@max:~$

如您所見,該軟件包在這里干凈安裝,不需要任何依賴(也許是因為我已經安裝了很多軟件包)並且可以正常加載。

我經常從命令行安裝和測試,並在littler中使用install.r包裝器- sudo apt-get install littler

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM