Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R - servr::jekyll() build error

Tags:

r

jekyll

knitr

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 ?

like image 321
giac Avatar asked Jun 27 '15 17:06

giac


1 Answers

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')
like image 145
Yihui Xie Avatar answered Oct 11 '22 04:10

Yihui Xie