You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I am being silly, but I struggle to write a condition that checks whether blogdown::build_site() was successful (to then decide whether to deploy). The function always returns NULL, and Hugo errors are not raised as R errors (or warnings).
Could the function possibly return TRUE/FALSE (invisibly) depending on whether the hugo build succeeded? Or is there already a solution that I am overlooking? (So far, I tried capture.output() but that also returns nothing.)
The text was updated successfully, but these errors were encountered:
I now realized that blogdown::hugo_build() returns the status code, so this is easy to solve by splitting this into two function calls - however, it would still be nice (and arguably more consistent) to get this straight from build_site()?
Maybe I am being silly, but I struggle to write a condition that checks whether
blogdown::build_site()
was successful (to then decide whether to deploy). The function always returns NULL, and Hugo errors are not raised as R errors (or warnings).Could the function possibly return TRUE/FALSE (invisibly) depending on whether the hugo build succeeded? Or is there already a solution that I am overlooking? (So far, I tried
capture.output()
but that also returns nothing.)The text was updated successfully, but these errors were encountered: