package 'stringi' does not work after updating to R3.2.1

自古美人都是妖i 提交于 2019-11-28 07:27:58
robJ

I had the same problem. Marek's comment above, that install.packages is looking for the source instead of the binary because it's newer, was correct for me too. But his suggestion to use the "options" line didn't work for me for some reason. This, however, did work:

install.packages("stringi",type="mac.binary")

This is much easier than trying to install a compiler through Xcode to process the source package.

You are victim of install.packages.check.source options which cause R to try install package from sources if sources are newer than binary. Which happens when package is updated (binaries shows up <72 after sources). Which was a case with stringi (look at messages you got: here is a binary version available but the source version is later).

I set

options(install.packages.check.source = "no")

in my .Rprofile file to not be worried by install.packages. All I need to do is wait for binaries to be compiled.

yl33

I tried install.packages("stringi") and it caused my R Studio to stop recognizing the packages I had installed.

I solved it by running this command. Hope it helps:

install.packages("stringi", repos="http://cran.rstudio.com/", dependencies=TRUE)

While running the commands in Rstudio, when a pop-up with a message "Do you want to install from sources the package which needs compilation" appeared, I clicked "No" and it worked! I had initially chosen "Yes". But that did not work for me. Then I read a post here to find out what should be selected. After choosing "No" it worked...

In windows 8 run R as administrator solved the issue for me.

You need to install the command line tools for Xcode per the instructions here:

https://support.rstudio.com/hc/en-us/articles/200486498-Package-Development-Prerequisites

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!