get_detail: GET Details for a CAS Registry Number

View source: R/get_detail.R

get_detailR Documentation

GET Details for a CAS Registry Number

Description

This function performs a query to retrieve details for a CAS Registry Number.

Usage

get_detail(cas_rn, json = FALSE)

Arguments

cas_rn

(Character) CAS Registry Number with dashes, e.g., "50-78-2".

json

(Logical) Should the result be returned as JSON? Defaults to FALSE.

Details

The function performs a sanity check on the provided CAS Registry Number and then performs a query. If successful, a list with the available details will be returned.

Value

Returns a list.

Author(s)

Raoul Wolf (https://github.com/RaoulWolf/)

Examples

## Not run: 
cas_rn <- "50-78-2"
get_detail(cas_rn)

## End(Not run)

RaoulWolf/cccapi documentation built on March 6, 2023, 2:19 p.m.