0

I'm trying to use blogdown with jekyll.

I can build and serve the site outside RStudio, but I want to use the RStudio functions really.

When I run blogdown:::serve_site()

I get Error in rethrow_call(c_processx_exec, command, c(command, args), pty, : Command 'jekyll' not found @win/processx.c:982 (processx_exec) Type .Last.error.trace to see where the error occurred (details below)

I've run `Sys.which("jekyll") and it returns the correct path ("C:\RUBY27~1\bin\jekyll.bat") (or, ~1 is a replacement for x64 which I assume is some system thing?).

I've updated R, all packages, and RStudio. I downgraded and then updated processx library (in case linked to https://github.com/r-lib/processx/issues/313). I've checked the path, and any internal files I can think to look in... I'm out of ideas. From what I understand the library processx is used in blogdown and it can't find jekyll, but should be able to. Any ideas?

> .Last.error.trace

 Stack trace:

 1. blogdown:::serve_site()
 2. blogdown:::serve(..., .site_dir = .site_dir)
 3. processx::process$new(cmd, cmd_args, stderr = "|", cleanup_tree = TRUE)
 4. processx:::initialize(...)
 5. processx:::process_initialize(self, private, command, args, stdin,  ...
 6. rethrow_call(c_processx_exec, command, c(command, args), pty,  ...

 x Command 'jekyll' not found @win/processx.c:982 (processx_exec) 
sjgknight
  • 357
  • 1
  • 5
  • 17
  • There are three other processx posts but none have responses, I've just rechecked `system('jekyll')` and the PATH is shown, I've looked at the functions as best I can but cannot see how to fix this. https://stackoverflow.com/questions/69167711/mlflow-not-running-on-machine and https://stackoverflow.com/questions/67836396/error-generating-pdf-with-knitr-after-installing-phantomjs and https://stackoverflow.com/questions/69254284/still-on-ml-flow-installation-in-r-studio – sjgknight Dec 30 '21 at 08:36

0 Answers0