diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eba8c65..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r - -language: R -cache: packages diff --git a/README.Rmd b/README.Rmd index eea9fac..e0da13f 100644 --- a/README.Rmd +++ b/README.Rmd @@ -16,7 +16,6 @@ knitr::opts_chunk$set( # semscholar: interfacing Semantic Scholar search engine with R -[![Travis build status](https://travis-ci.org/njahn82/semscholar.svg?branch=master)](https://travis-ci.org/njahn82/semscholar) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/njahn82/semscholar?branch=master&svg=true)](https://ci.appveyor.com/project/njahn82/semscholar) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) [![R-CMD-check](https://github.com/njahn82/semscholar/workflows/R-CMD-check/badge.svg)](https://github.com/njahn82/semscholar/actions) diff --git a/README.md b/README.md index bf8e588..ceb5683 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,11 @@ -[![Travis build -status](https://travis-ci.org/njahn82/semscholar.svg?branch=master)](https://travis-ci.org/njahn82/semscholar) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/njahn82/semscholar?branch=master&svg=true)](https://ci.appveyor.com/project/njahn82/semscholar) [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental) +[![R-CMD-check](https://github.com/njahn82/semscholar/workflows/R-CMD-check/badge.svg)](https://github.com/njahn82/semscholar/actions) This web client wraps the Semantic Scholar RESTful API. [Semantic @@ -42,15 +41,14 @@ s2_papers( "arXiv:0711.0914") ) #> # A tibble: 4 x 14 -#> abstract arxiv_id authors citation_veloci… citations doi -#> -#> 1 T-DNA i… 2 T-DNA i… 3 Publica… 4 Abstrac… 0711.09… # … with 8 more variables: influential_citation_count , -#> # paper_id , references , title , topics , -#> # url , venue , year +#> abstract arxiv_id authors citation_veloci… citations doi influential_cit… +#> +#> 1 T-DNA ins… 2 T-DNA ins… 3 Publicati… 4 Abstract … 0711.0914 # … with 7 more variables: paper_id , references , title , +#> # topics , url , venue , year ``` Authors @@ -59,13 +57,13 @@ Authors s2_papers("14a22b032524573d15593abed170f9f76359e581")$authors #> [[1]] #> # A tibble: 5 x 3 -#> author_id author_name author_url -#> -#> 1 31697714 Nils Kleinboelting https://www.semanticscholar.org/author/3169… -#> 2 1922491 Gunnar Huep https://www.semanticscholar.org/author/1922… -#> 3 3096048 Andreas Kloetgen https://www.semanticscholar.org/author/3096… -#> 4 3236938 Prisca Viehoever https://www.semanticscholar.org/author/3236… -#> 5 2204561 Bernd Weisshaar https://www.semanticscholar.org/author/2204… +#> author_id author_name author_url +#> +#> 1 2099949665 Nils Kleinboelting https://www.semanticscholar.org/author/20999496… +#> 2 1922491 G. Huep https://www.semanticscholar.org/author/1922491 +#> 3 3096048 A. Kloetgen https://www.semanticscholar.org/author/3096048 +#> 4 2092957728 Prisca Viehoever https://www.semanticscholar.org/author/20929577… +#> 5 2204561 B. Weisshaar https://www.semanticscholar.org/author/2204561 ``` Citations @@ -73,23 +71,22 @@ Citations ``` r s2_papers("14a22b032524573d15593abed170f9f76359e581")$citations #> [[1]] -#> # A tibble: 143 x 10 -#> citations_arxiv… citations_autho… citations_doi citations_intent -#> -#> 1 NA -#> 2 NA 10.1105/tpc.… -#> 3 NA 10.1111/tpj.… -#> 4 NA 10.1007/s107… -#> 5 NA 10.1111/tpj.… -#> 6 NA 10.1016/j.pl… -#> 7 NA 10.1038/s415… -#> 8 NA 10.1104/pp.1… -#> 9 NA -#> 10 NA -#> # … with 133 more rows, and 6 more variables: -#> # citations_is_influential , citations_paper_id , -#> # citations_title , citations_url , citations_venue , -#> # citations_year +#> # A tibble: 283 x 10 +#> citations_arxiv_id citations_authors citations_doi citations_intent +#> +#> 1 NA 10.1101/2021.01.06.425… +#> 2 NA 10.1186/s12870-021-030… +#> 3 NA 10.1101/2021.03.03.433… +#> 4 NA 10.3389/fpls.2021.6286… +#> 5 NA 10.1101/2021.06.03.446… +#> 6 NA 10.1101/2021.02.17.431… +#> 7 NA 10.1038/s41467-020-205… +#> 8 NA 10.3389/fpls.2021.6524… +#> 9 NA 10.1101/2021.01.28.428… +#> 10 NA 10.1101/2020.04.02.021… +#> # … with 273 more rows, and 6 more variables: citations_is_influential , +#> # citations_paper_id , citations_title , citations_url , +#> # citations_venue , citations_year ``` References @@ -97,23 +94,25 @@ References ``` r s2_papers("14a22b032524573d15593abed170f9f76359e581")$references #> [[1]] -#> # A tibble: 11 x 10 -#> references_arxi… references_auth… references_doi references_inte… -#> -#> 1 NA 10.1093/nar/g… -#> 2 NA -#> 3 NA -#> 4 NA 10.1023/B:PLA… -#> 5 NA 10.1093/nar/2… -#> 6 NA 10.1093/nar/2… -#> 7 NA 10.1093/nar/g… -#> 8 NA 10.1111/j.136… -#> 9 NA 10.2144/03356… -#> 10 NA -#> 11 NA 10.1093/bioin… +#> # A tibble: 13 x 10 +#> references_arxiv_… references_autho… references_doi references_inte… +#> +#> 1 NA 10.1093/nar/gkl753 +#> 2 NA 10.1038/35048692 +#> 3 NA 10.1111/j.1365-313X.20… +#> 4 NA 10.1093/NAR/GKH134 +#> 5 NA 10.1385/1-59259-192-2:… +#> 6 NA 10.1093/NAR/23.24.4992 +#> 7 NA +#> 8 NA 10.1104/pp.103.022251 +#> 9 NA 10.1093/bioinformatics… +#> 10 NA 10.1126/SCIENCE.1086391 +#> 11 NA 10.2144/03356ST01 +#> 12 NA 10.1023/B:PLAN.0000009… +#> 13 NA 10.1093/nar/gkm965 #> # … with 6 more variables: references_is_influential , -#> # references_paper_id , references_title , -#> # references_url , references_venue , references_year +#> # references_paper_id , references_title , references_url , +#> # references_venue , references_year ``` Topics @@ -122,34 +121,33 @@ Topics s2_papers("14a22b032524573d15593abed170f9f76359e581")$topics #> [[1]] #> # A tibble: 13 x 3 -#> topic topic_id topic_url -#> -#> 1 KickassTorrents 2106063 https://www.semanticscholar.org/topic… -#> 2 Gabi software 1885631 https://www.semanticscholar.org/topic… -#> 3 Index 35133 https://www.semanticscholar.org/topic… -#> 4 Clinical act of inserti… 2803 https://www.semanticscholar.org/topic… -#> 5 KAT 250 7277553 https://www.semanticscholar.org/topic… -#> 6 Reverse Genetics 21005 https://www.semanticscholar.org/topic… -#> 7 Annotation 37540 https://www.semanticscholar.org/topic… -#> 8 Silo (dataset) 130506 https://www.semanticscholar.org/topic… -#> 9 fostriecin 5652 https://www.semanticscholar.org/topic… -#> 10 DNA Sequence - Cloning … 653134 https://www.semanticscholar.org/topic… -#> 11 Collections (publicatio… 23835 https://www.semanticscholar.org/topic… -#> 12 Nuclear Proteins 252416 https://www.semanticscholar.org/topic… -#> 13 Insertion Mutation 999582 https://www.semanticscholar.org/topic… +#> topic topic_id topic_url +#> +#> 1 KickassTorrents 2106063 https://www.semanticscholar.org/topic/21… +#> 2 Gabi software 1885631 https://www.semanticscholar.org/topic/18… +#> 3 Index 35133 https://www.semanticscholar.org/topic/35… +#> 4 Clinical act of insertion 2803 https://www.semanticscholar.org/topic/28… +#> 5 KAT 250 7277553 https://www.semanticscholar.org/topic/72… +#> 6 Reverse Genetics 21005 https://www.semanticscholar.org/topic/21… +#> 7 Annotation 37540 https://www.semanticscholar.org/topic/37… +#> 8 Silo (dataset) 130506 https://www.semanticscholar.org/topic/13… +#> 9 fostriecin 5652 https://www.semanticscholar.org/topic/56… +#> 10 DNA Sequence - Cloning Si… 653134 https://www.semanticscholar.org/topic/65… +#> 11 Collections (publication) 23835 https://www.semanticscholar.org/topic/23… +#> 12 Nuclear Proteins 252416 https://www.semanticscholar.org/topic/25… +#> 13 Insertion Mutation 999582 https://www.semanticscholar.org/topic/99… ``` ## Author Lookup -Provide one or many S2 Author IDs to obtain a personal publication -profile +Provide one or many S2 Author IDs ``` r s2_authors(c("2204561", "144128278", "49930593")) #> # A tibble: 3 x 6 -#> aliases author_id author_name author_url influential_cita… papers -#> -#> 1 2 3 aliases author_id author_name author_url influential_citat… papers +#> +#> 1 2 3