Skip to content

Instantly share code, notes, and snippets.

@jknowles
Created January 27, 2012 17:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jknowles/1689870 to your computer and use it in GitHub Desktop.
Save jknowles/1689870 to your computer and use it in GitHub Desktop.
Set R Sysenvironment for LaTeX and BibTex in RStudio
#Set Environment Variables
TEXINPUTS="C:\\" #Path to tex file in Windows
Sys.setenv(TEXINPUTS="C:\\~", BIBINPUTS=TEXINPUTS,BSTINPUTS=TEXINPUTS)
#Path to texfiles in Windows, set BIB files and BST files the same
#Run before clicking "Compile PDF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment