knitr仅使用标准乳胶包装

knitr仅使用标准乳胶包装,r,latex,knitr,R,Latex,Knitr,我在一台共享电脑上运行knitr with RStudio。主要问题是这台电脑只有基本的latex软件包(安装miktex后得到的软件包)。 我无法安装框架或列表之类的新软件包 我想知道是否有任何方法可以在没有这些包的情况下运行knitr(仅使用标准包) 这里有一些例子: \documentclass{article} \usepackage{amsmath} \begin{document} \title{OES dataset} \author{Luca } \maketitle p

我在一台共享电脑上运行knitr with RStudio。主要问题是这台电脑只有基本的latex软件包(安装miktex后得到的软件包)。 我无法安装框架或列表之类的新软件包

我想知道是否有任何方法可以在没有这些包的情况下运行knitr(仅使用标准包)

这里有一些例子:

\documentclass{article}

\usepackage{amsmath}

\begin{document}


\title{OES dataset}
\author{Luca }
\maketitle
proviamo knitr
<<>>=
x=rnorm(100)
y=rnorm(100)
plot(x,y)
@


\end{Document}
\documentclass{article}
\usepackage{amsmath}
\开始{document}
\标题{OES数据集}
\作者{Luca}
\maketitle
克尼特省
=
x=rnorm(100)
y=rnorm(100)
绘图(x,y)
@
\结束{Document}
这是日志文件:

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.11.12)  18 NOV 2013 09:02
entering extended mode
**prova_knitr.tex
(Z:\prova_knitr\prova_knitr.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\color.sty"
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.
)

! LaTeX Error: File `framed.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.26 \makeatletter

*** (cannot \read from terminal in nonstop modes)


Here is how much of TeX's memory you used:
 854 strings out of 493921
 11219 string characters out of 3144884
 61852 words of memory out of 3000000
 4206 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 841 hyphenation exceptions out of 8191
 27i,0n,19p,289b,36s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!
这是pdfTeX,版本3.1415926-2.4-1.40.13(MiKTeX 2.9)(预加载格式=pdflatex 2013.11.12)2013年11月18日09:02
进入扩展模式
**prova_knitr.tex
(Z:\prova_knitr\prova_knitr.tex
迟到的
英语、南非荷兰语、古希腊语、阿拉伯语的巴别塔语和连字模式
亚比克语、亚美尼亚语、阿萨姆语、巴斯克语、孟加拉语、博克马尔语、保加利亚语、加泰罗尼亚语、科普特语、,
克罗地亚语、捷克语、丹麦语、荷兰语、世界语、爱沙尼亚语、波斯语、芬兰语、法语、佐治亚语
李锡安语、德语、德语-x-2012-05-30、希腊语、古吉拉特语、印地语、匈牙利语、冰岛语
ic、印度尼西亚语、语际语、爱尔兰语、意大利语、卡纳达语、库尔曼吉语、拉丁语、拉脱维亚语、,
立陶宛语、马来语、马拉地语、蒙古语、蒙古语、单希腊语、恩格曼语、北爱尔兰语
德语-x-2012-05-30,尼诺尔斯克,奥利亚,旁遮普,拼音,波兰语,葡萄牙语,罗马语
伊恩语、俄语、梵语、塞尔维亚语、斯洛伐克语、斯洛文尼亚语、西班牙语、瑞典语、瑞士语
土耳其语、泰米尔语、泰卢固语、土耳其语、土库曼语、英国英语、乌克兰语、厄普索布语、乌塞恩格尔语
伊斯马克斯,威尔士人,上膛了。
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\base\article.cls”
文件类别:文章2007/10/19 v1.4h标准乳胶文件类别
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\base\size10.clo”
文件:size10.clo2007/10/19 v1.4h标准乳胶文件(大小选项)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\以上字幕kip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty”
包装:graphicx 1999/02/16 v1.0f增强乳胶图形(DPC、SPQR)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty”
软件包:keyval 1999/03/16 v1.13 key=value解析器(DPC)
\KV@toks@=\toks4
)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty”
包装:graphics 2009/02/05 v1.0o标准乳胶图形(DPC、SPQR)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty”
套装:trig 1999/03/16 v1.09正色棕褐色(DPC)
)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg”
文件:graphics.cfg 2007/01/18 v1.5 teTeX/TeXLive的图形配置
)
软件包图形信息:输入行91上的驱动程序文件:pdftex.def。
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\pdftex def\pdftex.def”
文件:pdftex.def 2011/05/27 v0.06d pdftex图形/颜色
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty”
软件包:INFWARERR2010/04/08 v1.3提供信息/警告/错误消息(HO)
)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty”
软件包:ltxcmds 2011/11/09 v1.22通用乳胶内核命令(HO)
)
\Gread@gobject=\count87
))
\Gin@req@高度=\dimen103
\Gin@req@宽度=\dimen104
)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\graphics\color.sty”
包装:颜色2005/11/14 v1.0j标准乳胶色(DPC)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\00miktex\color.cfg”
文件:color.cfg 2007/01/18 v1.5 teTeX/TeXLive的颜色配置
)
包颜色信息:输入行130上的驱动程序文件:pdftex.def。
)
!LaTeX错误:找不到文件'framed.sty'。
键入X退出或继续,
或输入新名称。(默认扩展名:sty)
输入文件名:
紧急停车。
l、 26\makeatletter
***(无法\在非停止模式下从终端读取)
以下是您使用的TeX内存量:
493921中的854个字符串
3144884中的11219个字符串字符
300万内存中有61852个字
15000+200000中的4206个多字母控制序列
14种字体的字体信息为3640字,9000种字体的字体信息为3000000字
8191中的841个断字例外
5000i、500n、10000p、200000b、50000s中的27i、0n、19p、289b、36s堆栈位置
!=>发生致命错误,未生成输出PDF文件!
使用Swave,我得到了一个不同的错误:

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) (preloaded format=pdflatex 2013.11.12)  18 NOV 2013 09:05
entering extended mode
**prova_knitr.tex
(Z:\prova_knitr\prova_knitr.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty"
Package: amsmath 2013/01/14 v2.14 AMS math features
\@mathmargin=\skip43

For additional information on amsmath, use the `?' option.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0
\@emptytoks=\toks14
\ex@=\dimen103
))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d
\pmbraise@=\dimen104
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"
Package: amsopn 1999/12/14 v2.01 operator names
)
\inf@bad=\count87
LaTeX Info: Redefining \frac on input line 210.
\uproot@=\count88
\leftroot@=\count89
LaTeX Info: Redefining \overline on input line 306.
\classnum@=\count90
\DOTSCASE@=\count91
LaTeX Info: Redefining \ldots on input line 378.
LaTeX Info: Redefining \dots on input line 381.
LaTeX Info: Redefining \cdots on input line 466.
\Mathstrutbox@=\box26
\strutbox@=\box27
\big@size=\dimen105
LaTeX Font Info:    Redeclaring font encoding OML on input line 566.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 567.
\macc@depth=\count92
\c@MaxMatrixCols=\count93
\dotsspace@=\muskip10
\c@parentequation=\count94
\dspbrk@lvl=\count95
\tag@help=\toks15
\row@=\count96
\column@=\count97
\maxfields@=\count98
\andhelp@=\toks16
\eqnshift@=\dimen106
\alignsep@=\dimen107
\tagshift@=\dimen108
\tagwidth@=\dimen109
\totwidth@=\dimen110
\lineht@=\dimen111
\@envbody=\toks17
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks18
LaTeX Info: Redefining \[ on input line 2665.
LaTeX Info: Redefining \] on input line 2666.
)
(C:/PROGRA~1/R/R-30~1.2/share/texmf/tex/latex\Sweave.sty
Package: Sweave 

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty"
Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks19
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.

("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX

("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)
)
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count99
))
\Gin@req@height=\dimen112
\Gin@req@width=\dimen113
)

! LaTeX Error: File `fancyvrb.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.16 \begingroup

*** (cannot \read from terminal in nonstop modes)


Here is how much of TeX's memory you used:
 1458 strings out of 493921
 18070 string characters out of 3144884
 72053 words of memory out of 3000000
 4792 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 841 hyphenation exceptions out of 8191
 34i,0n,21p,251b,36s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!
这是pdfTeX,版本3.1415926-2.4-1.40.13(MiKTeX 2.9)(预加载格式=pdflatex 2013.11.12)2013年11月18日09:05
进入扩展模式
**prova_knitr.tex
(Z:\prova_knitr\prova_knitr.tex
迟到的
英语、南非荷兰语、古希腊语、阿拉伯语的巴别塔语和连字模式
亚比克语、亚美尼亚语、阿萨姆语、巴斯克语、孟加拉语、博克马尔语、保加利亚语、加泰罗尼亚语、科普特语、,
克罗地亚语、捷克语、丹麦语、荷兰语、世界语、爱沙尼亚语、波斯语、芬兰语、法语、佐治亚语
李锡安语、德语、德语-x-2012-05-30、希腊语、古吉拉特语、印地语、匈牙利语、冰岛语
ic、印度尼西亚语、语际语、爱尔兰语、意大利语、卡纳达语、库尔曼吉语、拉丁语、拉脱维亚语、,
立陶宛语、马来语、马拉地语、蒙古语、蒙古语、单希腊语、恩格曼语、北爱尔兰语
德语-x-2012-05-30,尼诺尔斯克,奥利亚,旁遮普,拼音,波兰语,葡萄牙语,罗马语
伊恩语、俄语、梵语、塞尔维亚语、斯洛伐克语、斯洛文尼亚语、西班牙语、瑞典语、瑞士语
土耳其语、泰米尔语、泰卢固语、土耳其语、土库曼语、英国英语、乌克兰语、厄普索布语、乌塞恩格尔语
伊斯马克斯,威尔士人,上膛了。
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\base\article.cls”
文件类别:文章2007/10/19 v1.4h标准乳胶文件类别
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\base\size10.clo”
文件:size10.clo2007/10/19 v1.4h标准乳胶文件(大小选项)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\以上字幕kip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(“C:\ProgramFiles(x86)\MiKTeX 2.9\tex\latex\amsmath\amsmath.sty”
软件包:amsmath 2013/01/14 v2.14 AMS数学功能
\@mathmargin=\skip43
对于