[R-pkg-devel] ORCID ID finder via tools::CRAN_package_db() ?

Thierry Onkelinx th|erry@onke||nx @end|ng |rom |nbo@be
Tue Aug 20 13:43:20 CEST 2024


Hi Dirk,

Happy to help. I'm working on a new version of the checklist package. I
could export the function if that makes it easier for you.

Best regards,

Thierry

ir. Thierry Onkelinx
Statisticus / Statistician

Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance
thierry.onkelinx using inbo.be
Havenlaan 88 bus 73, 1000 Brussel
*Postadres:* Koning Albert II-laan 15 bus 186, 1210 Brussel
*Poststukken die naar dit adres worden gestuurd, worden ingescand en
digitaal aan de geadresseerde bezorgd. Zo kan de Vlaamse overheid haar
dossiers volledig digitaal behandelen. Poststukken met de vermelding
‘vertrouwelijk’ worden niet ingescand, maar ongeopend aan de geadresseerde
bezorgd.*
www.inbo.be

///////////////////////////////////////////////////////////////////////////////////////////
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
///////////////////////////////////////////////////////////////////////////////////////////

<https://www.inbo.be>


Op ma 19 aug 2024 om 15:39 schreef Dirk Eddelbuettel <edd using debian.org>:

>
> On 19 August 2024 at 15:15, Thierry Onkelinx wrote:
> | Maybe checklist:::author2df() might be useful. It is an unexported
> function
> | from my checklist package. It converts a person() object to a dataframe.
> |
> https://github.com/inbo/checklist/blob/5649985b58693acb88337873ae14a7d5bc018d96
> | /R/store_authors.R#L38
> |
> | df <- tools::CRAN_package_db()
> | lapply(
> |   df$`Authors using R`[df$Package  %in% c("git2rdata", "qrcode")],
> |   function(x) {
> |     parse(text = x) |>
> |       eval() |>
> |       vapply(checklist:::author2df, vector(mode = "list", 1)) |>
> |       do.call(what = rbind)
> |   }
> | )
> |
> |
> | [[1]]
> |     given       family                       email               orcid
> affiliation usage
> | 1 Thierry     Onkelinx    thierry.onkelinx using inbo.be 0000-0001-8804-4216
>       <NA>     1
> | 2  Floris Vanderhaeghe floris.vanderhaeghe using inbo.be 0000-0002-6378-6229
>       <NA>     1
> | 3   Peter       Desmet        peter.desmet using inbo.be 0000-0002-8442-8025
>       <NA>     1
> | 4     Els     Lommelen        els.lommelen using inbo.be 0000-0002-3481-5684
>       <NA>     1
> |
> | [[2]]
> |     given   family                 email               orcid affiliation
> usage
> | 1 Thierry Onkelinx qrcode using muscardinus.be 0000-0001-8804-4216
> <NA>     1
> | 2  Victor      Teh   victorteh using gmail.com
>
> That's a very nice start, thank you. (Will also look more closely at
> checklist.)  It needs an `na.omit()` or alike, and even with that `rbind`
> barked a few entries in (i = 19 if you select the full vector right now).
>
> But definitely something to play with and possibly build upon. Thanks!
> (And
> the IDs of Floris and you were two of the ones I 'manually' added to a
> DESCRIPTION file ;-)
>
> Best,  Dirk
>
> --
> dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list