Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (37 sloc) 2.02 KB
---
title: "patentsview"
output: github_document
---
```{r, echo = FALSE, message = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
> An R Client to the PatentsView API
[![](http://badges.ropensci.org/112_status.svg)](https://github.com/ropensci/onboarding/issues/112)
[![Linux Build Status](https://travis-ci.org/ropensci/patentsview.svg?branch=master)](https://travis-ci.org/ropensci/patentsview)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/ropensci/patentsview?branch=master&svg=true)](https://ci.appveyor.com/project/ropensci/patentsview)
[![](http://cranlogs.r-pkg.org/badges/patentsview)](http://cran.rstudio.com/web/packages/patentsview/index.html)
## Installation
You can get the stable version from CRAN:
```{r eval = FALSE}
install.packages("patentsview")
```
Or the development version from GitHub:
```{r eval = FALSE}
if (!require(devtools)) install.packages("devtools")
devtools::install_github("ropensci/patentsview")
```
## Basic usage
The [PatentsView API](http://www.patentsview.org/api/doc.html) 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 that API:
```{r}
library(patentsview)
search_pv(query = '{"_gte":{"patent_date":"2007-01-01"}}')
```
## Learning more
Head over to the package's [webpage](https://ropensci.github.io/patentsview/index.html) for more info, including:
* A [getting started vignette](http://ropensci.github.io/patentsview/articles/getting-started.html) for first-time users. The package was also introduced in an [rOpenSci blog post](https://ropensci.org/blog/blog/2017/09/19/patentsview).
* An in-depth tutorial on [writing queries](http://ropensci.github.io/patentsview/articles/writing-queries.html)
* A list of [examples](http://ropensci.github.io/patentsview/articles/examples.html)
* Two data applications (e.g., discovering the [top assignees](http://ropensci.github.io/patentsview/articles/top-assignees.html) in the field of databases)