Skip to content

Instantly share code, notes, and snippets.

@mdavy86
Last active December 14, 2015 19:32
Show Gist options
  • Save mdavy86/1d9ce6ec331d9603da3b to your computer and use it in GitHub Desktop.
Save mdavy86/1d9ce6ec331d9603da3b to your computer and use it in GitHub Desktop.
knitr scan error

Parsing scan()

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

SessionInfo

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

@mdavy86
Copy link
Author

mdavy86 commented May 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment