knitr-spin

Running Code Chunks in R (knitr package)

血红的双手。 提交于 2019-12-24 19:20:17
问题 I'm working on a markdown file I was sent that wants some of the script to be written in code chunks using the knitr package, which I've never used before. The problem I'm running into is that the scripts don't appear to be working when placed in the chunks, but work just fine when I run them outside of that context. Example: sqlite <- dbDriver("SQLite") con <- dbConnect(sqlite,"db/sqlite/table.db") That works. ```{r db_connect} sqlite <- dbDriver("SQLite") con <- dbConnect(sqlite,"db/sqlite