3 replies
May 9

adamhsparks

I can get the ROR ID to work, but I can’t duplicate the sort of structure in your example with a second entry in the vector aside from the ROR to work. For instance, if I include the project code along with GRDC’s ROR, I get this here

[ins] r$> devtools::document()
ℹ Updating read.abares documentation
ℹ Loading read.abares
Error in `map_chr()`:
ℹ In index: 4.
Caused by error:
! Result must be length 1, not 2.
Run `rlang::last_trace()` to see where the error occurred.

I tried the same as your example as well, using Curtin’s website, but I get the same error.

Any suggestions?

1 reply
May 9 ▶ adamhsparks

maelle

I think it is due to not using roxygen2’s version. I was able to reproduce the error but then noticed I had roxygen2’s CRAN version installed. I installed roxygen2’s dev version (pak::pak("r-lib/roxygen2")) and the error went away. Could you please confirm it works for you?

1 reply
May 9

adamhsparks

this indeed does fix the issue, thank you, @maelle!