Skip to content

[Bug]: single author name or initials throw error #493

Description

@Schiano-NOAA

Describe the bug

When a user inputs only a single name (e.g. Joe) or their initials, it throws an error. The add_authors() function is looking for 2 or more strings separated by space which I believe is causing the error. If a check is added to make sure first and last are present OR a blank space or just no addition to the last name line was added, this would fix the issue as well.

Describe how to reproduce the bug

library(asar)
create_template(authors = c("SB" = "SWFSC"))

Screenshots

No response

Which OS are you seeing the problem on?

No response

Which version of asar are you seeing the problem on?

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage_neededThis issue needs review

    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