get_export: GET the MOL Export for a CAS Registry Number

View source: R/get_export.R

get_exportR Documentation

GET the MOL Export for a CAS Registry Number

Description

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

Usage

get_export(cas_rn, verbose = FALSE)

Arguments

cas_rn

(Character) CAS Registry Number in "dash" format, e.g., "50-78-2".

verbose

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

Details

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

Value

Returns a character string.

Author(s)

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

Examples

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

## End(Not run)

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