Closed rkrug closed 3 months ago
In works2df, the title
column is actually derived from the display_name
field. So I believe if you changed the select
option to this it'd work:
select = c("id", "doi", "authorships", "publication_year", "display_name", "abstract_inverted_index", "topics")
Given that they're identical, I suppose it'd be sensible to use the other when one of them is not available:
That is exactly want I did.
I agree with your point about use title
if display_name
is not there and vice versa.
Note to self - minimal reprex to debug:
oa_fetch(
identifier = "W2605327467",
options = list(select = "title")
)
#> data frame with 0 columns and 0 rows
I am doing the following request with the select:
and I am getting the following result as you can download here https://www.dropbox.com/scl/fi/9mr5yw1h8sdrd78ya9llt/page_1.rds?rlkey=2ndmv223avd0gtxslicfmf2t7&dl=0
Now when using
I get the following tibble without title: