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