slidify / onefile

Standalone HTML files with Slidify
http://slidify.github.io/onefile
2 stars 2 forks source link

readlines error #2

Open seankross opened 10 years ago

seankross commented 10 years ago

I'm having some trouble with slidify("index.Rmd"). I'm using the latest version of rCharts and slidify/oneflie.

My console gives the following warnings:

slidify("index.Rmd")

processing file: index.Rmd
  |......................                                           |  33%
  ordinary text without R code

  |...........................................                      |  67%
label: unnamed-chunk-1 (with options) 
List of 2
 $ results: chr "asis"
 $ comment: logi NA

  |.................................................................| 100%
  ordinary text without R code

output file: index.md

Warning messages:
1: In readLines(doc, ...) :
  incomplete final line found on './assets/css/ribbons.css'
2: In readLines(doc, ...) :
  incomplete final line found on './assets/css/stylesheet.css'
3: In readLines(doc, ...) :
  incomplete final line found on 'libraries/widgets/bootstrap/js/bootstrap.min.js'
4: In readLines(doc, ...) :
  incomplete final line found on 'libraries/highlighters/highlight.js/highlight.pack.js'
5: In readLines(doc, ...) :
  incomplete final line found on 'libraries/widgets/nvd3/js/jquery-1.8.2.min.js'
6: In readLines(doc, ...) :
  incomplete final line found on 'libraries/widgets/nvd3/js/d3.v3.min.js'
7: In readLines(doc, ...) :
  incomplete final line found on 'libraries/widgets/nvd3/js/nv.d3.min-new.js'

This produces an index.html file with errors on the "Chart" slide:

library(rCharts)
Error: there is no package called 'rCharts'
n1 <- nPlot(mpg ~ wt, data = mtcars, type = "scatterChart")
Error: could not find function "nPlot"
n1$show("inline")
Error: object 'n1' not found
ramnathv commented 10 years ago

Did you install the onefile branch of slidify as well? Also you might need to clear the cache folder, as clearly knitr is not loading the rCharts package even though you have it installed.

seankross commented 10 years ago

Clearing the cache folder worked. Thanks.

ramnathv commented 10 years ago

Cool. Let me close this issue.