Git Product home page Git Product logo

Comments (6)

ramnathv avatar ramnathv commented on June 20, 2024

@mlgill I downloaded your slide folder and ran slidify and it runs fine. The error you are getting occurs when Slidify is unable to find some templates. Can you try doing the following?

  1. Use author('newdeck') to create a new presentation.
  2. Change framework to revealjs
  3. slidify("index.Rmd")

Tell me if this works for you. If it does, then it is likely that the sample presentation I put up uses some custom layouts which I have not updated in SlidifyLibraries.

from slidifyexamples.

mlgill avatar mlgill commented on June 20, 2024

Thanks for the reply. I get a similar error, which is actually the reason I started fiddling with the examples--I assumed they would run and I hoped to be able to back out a working version.

Here is the output. Looks like it's missing the mustache.js files?

> library(slidify)
> author('newdeck')
Creating slide directory at newdeck...
Copying files to newdeck...
Finished creating slide directory...
Switching to slide directory...
Initializing Git Repo
Initialized empty Git repository in /Volumes/Files/research/newdeck/.git/
[master (root-commit) 308edfa] Initial Commit
Checking out gh-pages branch...
Switched to a new branch 'gh-pages'
Adding .nojekyll to repo
Opening slide deck...
> slidify('index.Rmd')


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


output file: index.md

Copying files to libraries/frameworks/revealjs...
Copying files to libraries/highlighters/highlight.js...
Error in render(value, context) : could not find function "tmpl"
In addition: Warning messages:
1: In partial(key$key[i], partials, indent) :
  No partial 'head' or file 'head.mustache' found
2: In partial(key$key[i], partials, indent) :
  No partial 'initialize' or file 'initialize.mustache' found

from slidifyexamples.

mlgill avatar mlgill commented on June 20, 2024

Ugh, I just remembered that I was fiddling with revealjs in slidifyLibraries yesterday to try to get this to work. I nuked it and downloaded the dev version again. Your very simple example now works fine--my apologies.

The example revealjs presentation will now render also, but there are still some complaints. Directory here.


> setwd('../revealjs_ex/')
> file.edit('index.Rmd')
> slidify('index.Rmd')


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

  |...................                                              |  29%
label: unnamed-chunk-1 (with options) 
List of 3
 $ echo   : symbol F
 $ results: chr "asis"
 $ comment: logi NA

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

  |.....................................                            |  57%
label: unnamed-chunk-2 (with options) 
List of 3
 $ echo   : symbol F
 $ results: chr "asis"
 $ comment: logi NA

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

  |........................................................         |  86%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: symbol T

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


output file: index.md

from slidifyexamples.

ramnathv avatar ramnathv commented on June 20, 2024

Good that you got it working! What further complaints are you getting?

from slidifyexamples.

mlgill avatar mlgill commented on June 20, 2024

I posted in the output above. I take it from your response that this is expected output? I wasn't certain.

Edit: reading through the output and comparing to the presentation, it seems it corresponds to sections of code evaluation. Thanks again. Feel free to close this issue--I don't see an option to do so or I'd do it myself.

from slidifyexamples.

ramnathv avatar ramnathv commented on June 20, 2024

Yes. The output you see is from knitr as it runs through the document. There is an option to switch these messages off, but I like to keep it on by default, since it helps figure out any errors in the code.

from slidifyexamples.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.