0
我在自2009年以來一直使用CRAN的「sos」軟件包中遇到了多個問題。最近我注意到它有多種失敗方式,我可以不知道如何解決幾個問題。在RStudio的「sos.Rnw」 「編譯PDF」 有R 3.3.0在Mac OS X 10.11.5產生的XQuartz彈出如下:使用RStudio編譯傳統Sweave 0.99.902
>Sweave Noweb Syntax?
>>It seems you are using the Sweave-specific syntax in line(s)
>>9, 15, <snip>; you may need Sweave2knitr("sos.Rnw") to
>>convert it to knitr'.
我做了以下的,因爲它問:
Sweave2knitr('sos.Rnw')
這產生了一個文件'sos-knitr.Rnw'。我在RStudio中打開這個文件並點擊'編譯PDF'。我只有一條線:
>Loading required package: knitr"
如果我還有別的東西,我不知道它去了哪裏。
任何有關如何克服這個問題的建議?
謝謝,Spencer Graves
感謝。有沒有辦法在代碼中切換?我最近的小插曲工作使用了RMarkdown。 Spencer Graves –
如果您選擇使用編譯按鈕,那麼只需要項目特定的環境。 – coatless
嘗試['%!Rnw weave = Sweave'](https://support.rstudio.com/hc/en-us/articles/200532247?version=0.99.891&mode=desktop) – baptiste