You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2022. It is now read-only.
# We need a unique name...library(uuid)
full_name=paste("John", UUIDgenerate())
author_id <- fs_create_author(full_name)
expect_is(author_id, "numeric")
# If we try to create the same author,
expect_warning(id <- fs_create_author(full_name))
# expect to get back the original id ## NOT implemented in the figshare API yet! Emailed Mark
# expect_equal(id, author_id)
MrX <- paste("John", UUIDgenerate())
id <- fs_new_article(title="title", description="description",
authors= c("Karthik Ram", MrX))
d <- fs_details(id)
# Expect that Mr X is now the third author
expect_match(sapply(d$authors, `[[`, "last_name")[[3]], strsplit(MrX, '')[[1]][2])
also means we cannot use
fs_create
orfs_new_article
with an undefined author.The text was updated successfully, but these errors were encountered: