Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solved this issue:
devtools::build_readme() returns an error.
ℹ Installing openalexR in temporary library
ℹ Building /Users/massimoaria/Rpackages/openalexR/README.Rmd
Quitting from lines 190-203 [unnamed-chunk-12] (README.Rmd)
Error in item$last_known_institution :
$ operator is invalid for atomic vectors
Error:
! in callr subprocess.
Caused by error in
item$last_known_institution
:! $ operator is invalid for atomic vectors
ℹ See
$stdout
for standard output.Type .Last.error to see the more details.
We are not able to build readme because the following lines don't work:
my_arguments <- list(
entity = "authors",
last_known_institution.id = "I71267560",
works_count = ">499"
)
do.call(oa_fetch, c(my_arguments, list(count_only = TRUE)))
The issue appears only when you set count_only = TRUE