Dear Dirk, 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@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.onkel...@inbo.be 0000-0001-8804-4216 <NA> 1 2 Floris Vanderhaeghe floris.vanderhae...@inbo.be 0000-0002-6378-6229 <NA> 1 3 Peter Desmet peter.des...@inbo.be 0000-0002-8442-8025 <NA> 1 4 Els Lommelen els.lomme...@inbo.be 0000-0002-3481-5684 <NA> 1 [[2]] given family email orcid affiliation usage 1 Thierry Onkelinx qrc...@muscardinus.be 0000-0001-8804-4216 <NA> 1 2 Victor Teh victor...@gmail.com 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.onkel...@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 14:54 schreef Dirk Eddelbuettel <e...@debian.org>: > > Has anybody written a quick helper function that extracts the Authors@R > field > from tools::CRAN_package_db() and 'stems' it into 'Name, Firstname, ORCID' > which one could use to look up ORCID IDs at CRAN? The lookup at orcid.org > sometimes gives us 'private entries' that make it harder / impossible to > confirm a match. Having a normalised matrix or data.frame (or ...) would > also > make it easier to generate Authors@R. > > Cheers, Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel