cervus
September 27, 2018, 12:54pm
1
After updating RStudio from version 1.1 to 1.2, when I try to knit an R markdown document (even those freshly created from a template) I get this error message in "R Markdown" pane:
Error: unexpected end of input
Execution halted
aosmith
September 27, 2018, 2:52pm
2
It looks like this has been reported and confirmed as an issue (for Windows, at least):
opened 09:56AM - 27 Sep 18 UTC
closed 04:24PM - 27 Sep 18 UTC
bug
windows
### System details
Rstudio 1.2.1009 build 1039 (e9babcc5)
R version 3.… 5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
### Steps to reproduce the problem
Rstudio does not knit/render any .Rmd, even the default template.
When the Knit button is pressed, it inserts a blank character in the path (just after the .Rmd) and fails.
However, the knitting works if called from the console.
```
==> rmarkdown::render('C:/Users/Lorenzo/test_rmd.Rmd', encoding = '');
Error: unexpected end of input
Execution halted
```
See the screenshot:
![image](https://user-images.githubusercontent.com/3818056/46137884-d7e0c300-c24a-11e8-9f2c-ebb42d98d4d1.png)
Rstudio Preview 1.2.907 was not affected.
`sessionInfo()` output:
```R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Italian_Italy.1252 LC_CTYPE=Italian_Italy.1252
[3] LC_MONETARY=Italian_Italy.1252 LC_NUMERIC=C
[5] LC_TIME=Italian_Italy.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.1 backports_1.1.2 magrittr_1.5 rsconnect_0.8.8 rprojroot_1.3-2
[6] htmltools_0.3.6 tools_3.5.1 yaml_2.2.0 Rcpp_0.12.18 stringi_1.2.4
[11] rmarkdown_1.10 knitr_1.20 stringr_1.3.1 digest_0.6.17 evaluate_0.11
```
1 Like
Thanks for taking the time to test! We've fixed this in the latest daily builds of RStudio and hope to get the fix promoted to the preview release ASAP.