I am trying to use jekyll with knitr as proposed here
https://github.com/yihui/knitr-jekyll
When I try to use the R function (through R Studio)
servr::jekyll()
I get an error
sh: jekyll: command not found
Error in jekyll_build() : Failed to run: jekyll build
There is no problem when building the github example, it works fine.
I have no idea where the error could come from.
I work on a mac OS X Yosemite.
Any clue ?
You can pass the full path of the executable jekyll to the servr::jekyll() function (which can be found via which jekyll in the terminal), e.g.
servr::jekyll(command = '/.rvm/gems/ruby-2.2.1/wrappers/jekyll build')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With