Blogdown - run Hugo from a custom path

Hi,

I'm having difficulty serving my site using blogdown in R Studio. Every time I try to serve the site, I get an error as hugo.exe gets blocked because of the folder it tries to run from - C:/[name]/appdata/roaming/hugo/hugo.exe.

Is there a way to change the location where Blogdown tries to run the hugo.exe from? I was able to change the location where it installs hugo from using options(blogdown.hugo.dir = [path] but unsure how to stop it being run from appdata/roaming.

Any help would be much appreciated

Thanks

Tom

Have you uninstall previous version installed in Appdata ?
If still there, it is possible that hugo is still found in the PATH.
I think you need to add your new location in the PATH env variable so that the correct executable is found;

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.