Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't knit HTML on R Markdown. Can anyone please assist?

Tags:

r

rstudio

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.

like image 788
Jash Shah Avatar asked Oct 19 '22 08:10

Jash Shah


2 Answers

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.

like image 131
Box and Cox Avatar answered Oct 27 '22 00:10

Box and Cox


Answering it myself.

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

Thank you for your answers.

like image 45
Jash Shah Avatar answered Oct 27 '22 01:10

Jash Shah