library(knitr)
Some people use scan to load small amounts of data into R
x <- scan(what=character())
A B C D
E F G H
""
## Return x
x
Session information about the platform and attached versions of packages;
sessionInfo() R version 3.0.2 (2013-09-25) Platform: x86_64-unknown-linux-gnu (64-bit)
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] knitr_1.5
loaded via a namespace (and not attached): [1] evaluate_0.5.3 formatR_0.10 stringr_0.6.2 tools_3.0.2
Solution pointed out in this thread
http://stackoverflow.com/questions/11248705/knitr-fail-compiling-chunk-with-scandec