Learn R Programming

PubChemR (version 2.1.3)

request_args: Retrieve Function Inputs

Description

This function retrieves the input arguments from a specified PubChem database request object.

Usage

request_args(object, .which = NULL, ...)

Value

A list or string vector containing the options used in the function call.

Arguments

object

An object returned from related request functions of the PubChem database.

.which

A string specifying which argument's content to retrieve from object. If NULL, all function inputs will be returned.

...

Additional arguments. These have no effect on the returned outputs and are included for compatibility with S3 methods in the PubChemR package.

Examples

Run this code
request <- get_cids("aspirin", namespace = "name")

request_args(request, "identifier")
request_args(request)

Run the code above in your browser using DataLab