【发布时间】:2015-06-02 16:08:56
【问题描述】:
我遇到了和this question一样的问题:
当我打开任何 .Rnw 文件时,R Studio 说我没有安装 TeX Distribution:我使用的是 Ubuntu 14.04 w/Gnome 和 TeXLive 2014。
我在 Renviron.site 文件中包含 PATH=/usr/local/texlive/2014/bin:${PATH} 行,现在看起来像:
## Emacs please make this -*- R -*-
## empty Renviron.site for R on Debian
##
## Copyright (C) 2008 Dirk Eddelbuettel and GPL'ed
##
## see help(Startup) for documentation on ~/.Renviron and Renviron.site
# ## Example ~/.Renviron on Unix
# R_LIBS=~/R/library
# PAGER=/usr/local/bin/less
# ## Example .Renviron on Windows
# R_LIBS=C:/R/library
# MY_TCLTK="c:/Program Files/Tcl/bin"
# ## Example of setting R_DEFAULT_PACKAGES (from R CMD check)
# R_DEFAULT_PACKAGES='utils,grDevices,graphics,stats'
# # this loads the packages in the order given, so they appear on
# # the search path in reverse order.
PATH=/usr/local/texlive/2014/bin:${PATH}
但是问题仍然存在。如何解决此问题并运行 Sweave 或 knitR?
【问题讨论】:
标签: path ubuntu-14.04 tex sweave