R-servr :: jekyll () error

I am trying to use jekyll with knitr as suggested here

https://github.com/yihui/knitr-jekyll

When I try to use R function (via R Studio)

 servr::jekyll() 

I get an error

 sh: jekyll: command not found Error in jekyll_build() : Failed to run: jekyll build 

No problem creating a github example, it works great. I do not know where the error might have come from.

I am working on mac OS X Yosemite .

Any clue?

+5
source share
1 answer

You can pass the full path of the executable jekyll to the servr::jekyll() function (which can be found through which jekyll in the terminal), for example

 servr::jekyll(command = '/.rvm/gems/ruby-2.2.1/wrappers/jekyll build') 
+6
source

All Articles