-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathREADME.Rmd
More file actions
54 lines (38 loc) · 2.16 KB
/
README.Rmd
File metadata and controls
54 lines (38 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: "patentsview"
output: github_document
---
```{r, echo = FALSE, message = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
> An R client to the PatentsView API
[](https://github.com/ropensci/software-review/issues/112)
[](https://github.com/ropensci/patentsview/actions)
[](https://cran.r-project.org/package=patentsview)
[](https://ropensci.r-universe.dev/patentsview)
## Installation
You can get the stable version from CRAN:
```{r eval = FALSE}
install.packages("patentsview")
```
### Development version
To get a bug fix or to use a feature from the development version, you can install the development version from GitHub:
```{r eval = FALSE}
# install.packages("pak")
pak::pak("ropensci/patentsview")
```
## Basic usage
The [PatentsView API](<https://search.patentsview.org/docs/docs/Search%20API/SearchAPIReference/>) provides an interface to a disambiguated version of USPTO. The `patentsview` R package provides one main function, `search_pv()`, to make it easy to interact with the API:
```{r}
library(patentsview)
search_pv(query = '{"_gte":{"patent_date":"2007-01-01"}}')
```
## Learning more
Head over to the package's [webpage](https://docs.ropensci.org/patentsview/index.html) for more info, including:
* A [getting started vignette](https://docs.ropensci.org/patentsview/articles/getting-started.html) for first-time users. The package was also introduced in an [rOpenSci blog post](https://docs.ropensci.org/patentsview/articles/ropensci-blog-post.html), rewritten for the new version of the API.
* An in-depth tutorial on [writing queries](https://docs.ropensci.org/patentsview/articles/writing-queries.html)
* A list of [basic examples](https://docs.ropensci.org/patentsview/articles/examples.html)
* Two examples of data applications (e.g., a brief analysis of the [top assignees](https://docs.ropensci.org/patentsview/articles/top-assignees.html) in the field of databases)