简体   繁体   English

加载Swirl软件包时出现问题

[英]Problems loading the Swirl package

I was able to install the swirl package, but when I give the library (swirl) command, the following error appears: 我能够安装漩涡包装,但是当我给出库(漩涡)命令时,出现以下错误:

Error: package or namespace load failed for ‘swirl’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘crayon’

So I try to install the crayon package and it appears: 所以我尝试安装蜡笔软件包,它显示为:

* installing *source* package 'crayon' ...
** package 'crayon' successfully unpacked and MD5 sums checked
Warning in file(file, if (append) "a" else "w") :
  cannot open file 'C:/Users/Tams/Documents/R/win-library/3.4/crayon/DESCRIPTION': No such file or directory
Error in file(file, if (append) "a" else "w") : 
  it's not possible to open the conection
ERROR: installing package DESCRIPTION failed for package 'crayon'
* removing 'C:/Users/TAÍS/Documents/R/win-library/3.4/crayon'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\TAÍS\Documents\R\win-library\3.4" C:\Users\TAS~1\AppData\Local\Temp\Rtmpc9eX85/downloaded_packages/crayon_1.3.4.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘crayon’ had non-zero exit status

How can I solve this problem and load the swirl package? 如何解决此问题并装入旋流包装?

Try loading it directly from Github and see if it solves the problem. 尝试直接从Github加载它,看看它是否解决了问题。 You may want to restart your instance of R prior to this to ensure that all is right in the world. 您可能需要在此之前重新启动R实例,以确保一切正常。

devtools::install_github("r-lib/crayon")
library(crayon)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM