maxheld
maxheld

Reputation: 4273

servr::jekyll does not render knitr-jekyll MWE correctly inside RStudio

I was trying to get Yihui's fantastic knitr-jekyll boilerplate to work inside RStudio.

Here's what I did:

I get this as a preview in RStudio (same in the browser):

preview from within RStudio

Oddly, now, if I delete or overwrite \_site and have Jekyll do the serving on the terminal, things work out:

$ jekyll serve

enter image description here

So it seems like calling Jekyll on the terminal works just fine, based on the *.md produced by servr::jekyll via knitr, but servr::jekyll somehow chokes on the styling.

I'm not sure what's going on here, or on whose end the problem might be.

Any thoughts?


I got:

Upvotes: 1

Views: 146

Answers (1)

maxheld
maxheld

Reputation: 4273

Yeah, so, the PATH conundrum struck again: For some reason I had a stray, old jekyll in /usr/bin/, which is where RStudio looked first.

> system("which jekyll")
/usr/bin/jekyll

To fix this, I just deleted that stray, old jekyll, and RStudio would continue searching to /usr/local/bin/jekyll which is where gem install jekyll had apparently left it.

> system("which jekyll"
/usr/bin/local/jekyll

Done.

fixed it!

Seriously, though, I get nightmares from all things PATH.

Upvotes: 2

Related Questions