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'm attempting to use this client to find the doi of all .R files in a dataverse server, and I've run into a couple of interesting behaviors.
Calling dataverse_search prints a message to the console "10 of 3842 results retrieved". However, calling dataverse_search with a "start" parameter that would seem to be the last page of the results (start = ceiling(3842/10) = 385) still yields 10 results, and pages beyond that number continue to yield results. Therefore, how would I determine the appropriate number of pages to get data for?
dataverse_search does not return a doi field. The dataframe returned from dataverse_search has the following columns: ## [1] "name" "type" "url" ## [4] "file_id" "description" "published_at" ## [7] "file_type" "file_content_type" "size_in_bytes" ## [10] "md5" "checksum" "dataset_citation" ## [13] "unf"
none of which are doi. I was able to get around this by parsing the "dataset_citation" column using stringr, but having a dedicated doi field would be wonderful.
The text was updated successfully, but these errors were encountered:
I'm attempting to use this client to find the doi of all .R files in a dataverse server, and I've run into a couple of interesting behaviors.
dataverse_search
prints a message to the console "10 of 3842 results retrieved". However, callingdataverse_search
with a "start" parameter that would seem to be the last page of the results (start = ceiling(3842/10) = 385) still yields 10 results, and pages beyond that number continue to yield results. Therefore, how would I determine the appropriate number of pages to get data for?dataverse_search
does not return a doi field. The dataframe returned fromdataverse_search
has the following columns:## [1] "name" "type" "url"
## [4] "file_id" "description" "published_at"
## [7] "file_type" "file_content_type" "size_in_bytes"
## [10] "md5" "checksum" "dataset_citation"
## [13] "unf"
none of which are doi. I was able to get around this by parsing the "dataset_citation" column using
stringr
, but having a dedicated doi field would be wonderful.The text was updated successfully, but these errors were encountered: