ÈÕº«ÎÞÂë

print friendly version

Questions and answers

2899
I am having problems Knitting to HTML documents in R Studio on University Windows computers


To successfully Knit an HTML document in on a University Windows computer, a config file needs to be present in your personal documents folder.

Follow these steps to create the file, you only need to do this once:

  1. Close R Studio, if open.
  2. Open Notepad++
  3. Copy and paste the text below into a new file:
  4. Click File > Save As
  5. Choose Documents on the left-hand side
  6. In the File name field type .Renviron
  7. Click the Save button
  8. Re-open R Studio.
  9. If you a prompted to install packages, click Yes.
  10. Attempt to Knit your document.

R_LIBS_USER="N:/Documents/R/win-library/4.0"
R_USER="N:/Documents"

Help us to improve this answer

Please suggest an improvement
(login needed, link opens in new window)

Your views are welcome and will help other readers of this page.

Categories

This is question number 2899, which appears in the following categories:

Created by Mark Wilson on 8 August 2019 and last updated by Mark Wilson on 28 June 2021