Skip to content

Commit

Permalink
override invalid ORCID placeholder created by usethis 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slager committed Sep 17, 2024
1 parent aa408f2 commit d9aff88
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion R/skeleton.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ datapackage_skeleton <-
}
package_path <- usethis::create_package(
path = file.path(path, name),
rstudio = FALSE, open = FALSE
# fields override for usethis 3.0.0 ORCID placeholder, errors out in R 4.5
# https://github.com/r-lib/usethis/issues/2059
# can remove fields argument here once fixed upstream
fields = list(
`Authors@R` = paste0(
"person(\"First\", \"Last\", email = \"first.last",
"@example.com\", role = c(\"aut\", \"cre\"))"
)
), rstudio = FALSE, open = FALSE
)
# compatibility between usethis 1.4 and 1.5.
if(is.character(package_path)){
Expand Down

0 comments on commit d9aff88

Please sign in to comment.