The feed level needs to be added. So x$feed$dataverseHasBeenReleased[[1]] becomes x$dataverseHasBeenReleased[[1]]? But there's something with dispatching isn't going as I expect. The full structure of x from list_datasets() isn't being recognized by `print.dataverse_dataset_list().
Edit: I think print() is fine. It's a problem with the tail end of list_datasets(). These objects are nested in x$feed, not just x.
The error is
The nested structure of the objected has changed, so this function is failing: https://github.com/IQSS/dataverse-client-r/blob/697180e5b9bc0f6d7bc16068d45cd06cf25e2646/R/print.R#L3-L8
The
feed
level needs to be added. Sox$feed$dataverseHasBeenReleased[[1]]
becomesx$dataverseHasBeenReleased[[1]]
? But there's something with dispatching isn't going as I expect. The full structure ofx
fromlist_datasets()
isn't being recognized by `print.dataverse_dataset_list().Edit: I think
print()
is fine. It's a problem with the tail end oflist_datasets()
. These objects are nested inx$feed
, not justx
.https://github.com/IQSS/dataverse-client-r/blob/697180e5b9bc0f6d7bc16068d45cd06cf25e2646/R/SWORD.R#L82-L85