Giter VIP home page Giter VIP logo

kwb.orcid's Introduction

R-CMD-check pkgdown codecov lifecycle CRAN_Status_Badge

kwb.orcid

R package for checking ORCID use at KWB. It is a wrapper for the R package rorcid.

Installation

### Optionally: specify GitHub Personal Access Token (GITHUB_PAT)"                                                                             
### See here why this might be important for you:"                                                                                             
### https://kwb-r.github.io/kwb.pkgbuild/articles/install.html#set-your-github_pat"                                                            
                                                                                                                                      
# Sys.setenv(GITHUB_PAT = \"mysecret_access_token\")"                                                                                          
                                                                                                                                      
# Install package \"remotes\" from CRAN"                                                                                                       
"if (! require(\"remotes\")) {"                                                                                                                 
 install.packages(\"remotes\", repos = \"https://cloud.r-project.org\")"                                                                      
}                                                                                                                                             
                                                                                                                                        
# Install KWB package 'kwb.orcid' from GitHub"                                                                                                 
                                                                                                                                              
remotes::install_github("kwb-r/kwb.orcid")                                                                                                  

Documentation

Release: https:://kwb-r.github.io/kwb.orcid

Development: https:://kwb-r.github.io/kwb.orcid/dev

kwb.orcid's People

Contributors

mrustl avatar

Watchers

 avatar  avatar  avatar  avatar

kwb.orcid's Issues

Update ORCID in all Github R packages

repo author orcid
KWB-R/aquanes.report [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.base [1] "Hauke Sonnenberg [email protected] [aut, cre] (0000-0001-9134-2871)" 0000-0001-9134-2871
KWB-R/kwb.code [1] "Hauke Sonnenberg [email protected] [aut, cre] (0000-0001-9134-2871)" 0000-0001-9134-2871
KWB-R/kwb.datetime [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.db [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.default [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.demeau [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.dwa.m150 [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.en13508.2 [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.event [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.fakin [1] "Hauke Sonnenberg [email protected] [aut, cre] (0000-0001-9134-2871)" 0000-0001-9134-2871
KWB-R/kwb.hantush [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.logger [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.monitoring [1] "Hauke Sonnenberg [email protected] [aut, cre] (0000-0001-9134-2871)" 0000-0001-9134-2871
KWB-R/kwb.orcid [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.pkgbuild [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.pkgstatus [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.plot [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.qmra [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.resilience [1] "Andreas Matzinger [email protected] [aut, cre] (0000-0001-5483-4594)" 0000-0001-5483-4594
KWB-R/kwb.test [1] "Hauke Sonnenberg [email protected] [aut, cre]" NA
KWB-R/kwb.umberto [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.utils [1] "Hauke Sonnenberg [email protected] [aut, cre] (0000-0001-9134-2871)" 0000-0001-9134-2871
KWB-R/kwb.vs2dh [1] "Michael Rustler [email protected] [aut, cre] (0000-0003-0647-7726)" 0000-0003-0647-7726
KWB-R/kwb.wtaq [1] "Hauke Sonnenberg [email protected] [aut, cre]"

Table created with the following R code:

gh_repos <- kwb.pkgstatus::get_github_repos()

non_r_packages = c("kwb-r.github.io",
                   "fakin.blog", "fakin.doc", "HydroServerLite", "GeoSalz")

rpkgs <- gh_repos$full_name[!gh_repos$name %in% non_r_packages]

desc <- try(
  lapply(rpkgs, 
         function(x) {
  repo_url <- sprintf("https://raw.githubusercontent.com/%s/master/DESCRIPTION", x)
  tmpfile <- tempfile()
  download.file(url = repo_url, destfile = tmpfile, mode = "wb")
  desc <- desc::desc(file = tmpfile)
  
  authors_desc <- capture.output(desc$get_authors())
  index <- grep(pattern = "aut|cred", authors_desc)
  authors <- authors_desc[index]
  orcid_pattern <- "[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}"
  orcid <- stringr::str_extract(authors[index],pattern = orcid_pattern)
  data.frame(repo = x, 
                           author = authors, orcid = orcid,
                           stringsAsFactors = FALSE)
    }))

desc_list <- data.table::rbindlist(desc)

knitr::kable(desc_list)

get_kwb_orcids() should return a named vector

get_kwb_orcids() returns a vector of ORCIDs but whom do they belong to?

[1] "0000-0001-5483-4594" "0000-0001-9134-2871" "0000-0002-7436-8575" "0000-0003-0647-7726"

The elements should be named:

c(
  "Andreas  Matzinger" = "0000-0001-5483-4594", 
  "Hauke Sonnenberg" = "0000-0001-9134-2871", 
  "Wolfgang Seis" = "0000-0002-7436-8575", 
  "Michael Rustler" = "0000-0003-0647-7726"
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.