Skip to content

create_report() can be made more robust to incorrect input #4

Description

@hansvancalster

The function create_report() is interactive and can error if a user inputs a value that is incorrect. This requires a user to start all over again - which can be frustrating if the error happens after a lot of input has already been given.

Here is a screenshot demonstrating that an error is given when "1" was given as input instead of "yes" (an error that is easy to make because previous questions require that a number of given as input):

Image

This comment also applies to other functions such as checklist::create_project() or protocolhelper::create_protocol() which use the same interactive workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions