-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing server feature and auto mode on/off - using the knit button #481
Comments
to get rstudio/rmarkdown@6c5ea83 that should fix one issue described in rstudio#481
I rerun the worflow with last version - some issue were fixed but other are still there |
This comment has been minimized.
This comment has been minimized.
The root cause of most problems in this issue is that The one below is different, so a separate reply:
I could make the Viewer display something (e.g. saying that the server has been stopped), but I'm not sure if it's worth the effort, because this problem is not specific to blogdown. The content of the Viewer is always preserved when the R session is restarted, no matter whether the page is actually still alive. If I were to display something at the end of If the user called |
Ok I have just updated the post above. Most of the issues has now been resolved and we have a more smooth workflow. There is still the last issue you've replied separatly. I completly understand your point. What about a message after If you don't think it is a good idea, we leave it like that and we can clause this issue I think. |
Sounds like a good idea. I'll add a message. Thanks for the suggestion! |
…nput_as_dir (#483) to get rstudio/rmarkdown@6c5ea83 that should fix one issue described in #481 (pressing Knit triggers an error because RStudio detects "C:" as the project root for some reason when the actual root is in a directory of the C: drive)
@yihui I wanted to share the workflow of what I tested so far to see if this is the correct behavior for you.
How it works for me
blogdown:::preview_site(startup = TRUE)
is ran in the consoleThe edited post is not shown in the Viewer - I was under the impression that
--navigateToChanged
would have lead to that (from 104c41a) - Related to Website in Viewer is updated before Rmd rendering #486navigating the website to the page in Viewer
Re modidying the Rmd post and saving. This is printed to the console
The website in the viewer does not update, while the page is correctly opened. Unexpected ? Related to #486Edit: It works now !Viewer is updated with the previous change, not the last I made!! Definitly unexpected, right ? Related to Website in Viewer is updated before Rmd rendering #486Edit : working now !Browser stays on the home page.Edit: Working also now !Navigating in the post in the browser - last edit is shown.Browser is updated to last change I just made BUT Viewer is updated with previous to last change like above. Odd !! See #486Edit: Also working now !Stoping the server now:
blogdown::stop_server()
.stop_server()
output nothing and both website were still on5Trying a dummy thing while hugo server is off: Re modifying the file and Saving...It still output in the console that it renders the RmdIs this expected while we have stopped servers ?Edit: This has been addressed in PR Stop watching and building Rmd if server is stopped #488And what about knitting the Rmd file directly ?
while in console I got a new startup server opened but also a failed call toEdit: This is fixed in 0.20.14, I now got correctlypreview_site
Re modifying the Rmd and saving, prints a message about clicking on the knit button... (I did not click the Knit button here)I believeEdit: This is also fixed by #488knit.on_save
is still TRUE in this workflow because stopping server did not stop the watching.Knitting again rethrow the error withEdit: No more error inpreview_site
preview_site
after installing Rmarkdown 2.4.2 (We require rmarkdown in dev version #483)blogdown.knit.on_save = FALSE
has been set as stated in the previous message)~Note: in the middle of that, the website still open in my browser that I reloaded ealier and was failing; reloaded to the page I was editing : a delay in navigateToChanged ?~Edit: Also fixed
Some stuff above did not happened as I was expecting them to.
What do you think about that ? Did it work smoothly for you ?
Is it windows specific ? I did not try yet on Linux.
The text was updated successfully, but these errors were encountered: