yihui/knitr — Issue #89: ?sd doesn't parse correctly: tries to create a folder
Author: bryanhanson
Created: 2012-01-18 20:17:28+00:00
State: open

I'm converting a lot of my documents and here's an issue I found:

\documentclass[10pt]{article}
\begin{document}

Reading \texttt{R} help files take some getting used to, but the information you need is there, somewhere!

<< Chunk6, echo = TRUE, eval = FALSE >>=
?sd # gives help on the function "sd"
@

\end{document}

Produces the following error:

> knit("/Users/bryanhanson/Desktop/KnitrProblem.Rnw")
|>>>>>>>>>>>>>>>>>>>>>> | 33%
|>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | 67%
Chunk6: echo=TRUE, eval=FALSE

Error in parser(file, encoding = encoding) :
/var/folders/f4/5smpz_448xj3_l0059_zm20h0000gn/T//Rtmp9dCN6I/file34ac699a9a82:2:0
unexpected end of input

This is with:

> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] graphics grDevices datasets stats tools utils methods base

other attached packages:
[1] knitr_0.1.1 devtools_0.5.1 HiveR_0.2-1 ChemoSpec_1.50-1
[5] FuncMap_1.0-1 mvbutils_2.5.101 sos_1.3-1 brew_1.0-6

loaded via a namespace (and not attached):
[1] amap_0.8-7 baseline_1.0-1 bipartite_1.17 chemometrics_1.3.7
[5] class_7.3-3 codetools_0.2-8 digest_0.5.1 e1071_1.6
[9] evaluate_0.4 formatR_0.3-4 grid_2.14.1 highlight_0.3.1
[13] igraph_0.5.5-4 lattice_0.20-0 MASS_7.3-16 mclust_3.4.10
[17] mvoutlier_1.9.4 mvtnorm_0.9-9991 nnet_7.3-1 parser_0.0-14
[21] pcaPP_1.9-44 pls_2.3-0 plyr_1.6 R.oo_1.8.3
[25] R.utils_1.9.6 RColorBrewer_1.0-5 Rcpp_0.9.7 RCurl_1.8-0
[29] RFOC_2.0-02 rgl_0.92.798 robustbase_0.8-0 rpart_3.1-50
[33] seriation_1.0-6 sna_2.2-0 som_0.3-5 SparseM_0.91
[37] splines_2.14.1 stringr_0.6 survival_2.36-10 tnet_3.0.5
[41] TSP_1.0-6 vegan_2.0-2 xtable_1.6-0