5

The error that I get is:

processing file: 1.Rmd
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called 'stringi'
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

I've tried installing the stringi package and loading it using the library function. But I still get the error.

I use R Studio Version 0.99.441 on on Mac OS X 10.6.8.

6
  • you probably used the package in your rmarkdown-file, so you need to load inside the document you are trying to knit
    – grrgrrbla
    Jun 26, 2015 at 9:52
  • install.package("stringi") ?
    – juba
    Jun 26, 2015 at 10:06
  • I tried using your method but it does not seem to work. If still can't knit an HTML file on R Markdown. I tried installing string on both my console in R Studio and my R Markdown document. Do you know any other way?
    – Jash Shah
    Jun 26, 2015 at 11:24
  • Can you see whether your code chunks run in the console? Jun 26, 2015 at 11:54
  • I suspect you have the same issue as stackoverflow.com/questions/31038636/… and have been unsuccessful in updating the stringi package because you don't have the tools installed to install the package from source. See the link I posted there. Because your version of MacOs X is rather old, you'll need a legacy version of Xcode. Jun 26, 2015 at 12:08

3 Answers 3

Reset to default

Trending sort

Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.

It falls back to sorting by highest score if no posts are trending.

3

I Just had this same problem but on a windows computer here is how I fixed it:

  1. Go to the windows folder where all the r packages are stored in when r installs a package it states the folder. I copy and pasted that address into windows explorer. (mine ended with R\win-library\3.2)

  2. Delete the folder stringi (which is essentially deleting the package stringi)

  3. Re-install stringi using install.packages('stringi')

This should work.

2

Answering it myself.

I updated my version of OS X and RStudio seems to knitting HTML files perfectly.

Thank you for your answers.

0

I'm a total nube (two days of actual R experience) but this is what I did to solve this problem.

I went to packages -> install -> stringi & stringr

Click on the "Install dependencies box"

Make sure that after you install these packages to click the check box on the stringi and stringr boxes under the "Packages" tab.

require both the stringi and stringr

I would suggest that you just test it in the Console section before you try to do anything else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.