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
I think this may be because I didn't specify metadata for the upload. But my actual particular use-case is uploading (updating) to an existing figshare dataset that already has metadata. So I'd rather not have to specify metadata each time. Anyways that's just a guess, not actually sure what's going on here. Also, please note that the file does actually upload despite the error message.
data <- as.character(runif(100))
temp_file <- tempfile(fileext = ".txt")
writeLines(data, temp_file)
cli <- deposits::depositsClient$new(service = "figshare")
cli$deposit_retrieve(24903468)
cli$deposit_upload_file(
path = temp_file,
deposit_id = 24903468,
overwrite = TRUE,
compress = "no"
)
#> Error in order(names(metadata)): argument 1 is not a vector
I think this may be because I didn't specify metadata for the upload. But my actual particular use-case is uploading (updating) to an existing figshare dataset that already has metadata. So I'd rather not have to specify metadata each time. Anyways that's just a guess, not actually sure what's going on here. Also, please note that the file does actually upload despite the error message.
Created on 2023-12-26 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: