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.
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;