Skip to content

[FR] Return build outcome from build_site()? #766

@LukasWallrich

Description

@LukasWallrich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions