% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chent.R \docType{class} \name{pai} \alias{pai} \title{An R6 class for pesticidal active ingredients and associated data} \format{ An \code{\link{R6Class}} generator object } \description{ The class is initialised with an identifier which is generally an ISO common name. Additional chemical information is retrieved from the internet if available. } \examples{ # On Travis, we get a certificate validation error, # likely because the system (xenial) is so old, # therefore don't run this example on Travis if (Sys.getenv("TRAVIS") == "") { atr <- pai$new("atrazine") print(atr) if (!is.null(atr$Picture)) { plot(atr) } } } \section{Super class}{ \code{\link[chents:chent]{chents::chent}} -> \code{pai} } \section{Public fields}{ \if{html}{\out{
}} \describe{ \item{\code{iso}}{ISO common name of the active ingredient according to ISO 1750} \item{\code{bcpc}}{Information retrieved from the BCPC compendium available online at Creates a new instance of this \link[R6:R6Class]{R6} class.} } \if{html}{\out{
}} } \section{Methods}{ \subsection{Public methods}{ \itemize{ \item \href{#method-pai-new}{\code{pai$new()}} \item \href{#method-pai-clone}{\code{pai$clone()}} } } \if{html}{\out{
Inherited methods
}} \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-pai-new}{}}} \subsection{Method \code{new()}}{ This class is derived from \link{chent}. It makes it easy to create a \link{chent} from the ISO common name of a pesticide active ingredient, and additionally stores the ISO name as well as the complete result of querying the BCPC compendium using \link[webchem:bcpc_query]{bcpc_query}. \subsection{Usage}{ \if{html}{\out{
}}\preformatted{pai$new( iso, identifier = iso, smiles = NULL, inchikey = NULL, bcpc = TRUE, pubchem = TRUE, pubchem_from = "auto", rdkit = TRUE, template = NULL, chyaml = TRUE )}\if{html}{\out{
}} } \subsection{Arguments}{ \if{html}{\out{
}} \describe{ \item{\code{iso}}{The ISO common name to be used in the query of the BCPC compendium} \item{\code{identifier}}{Alternative identifier used for querying pubchem} } \if{html}{\out{
}} } } \if{html}{\out{
}} \if{html}{\out{}} \if{latex}{\out{\hypertarget{method-pai-clone}{}}} \subsection{Method \code{clone()}}{ The objects of this class are cloneable with this method. \subsection{Usage}{ \if{html}{\out{
}}\preformatted{pai$clone(deep = FALSE)}\if{html}{\out{
}} } \subsection{Arguments}{ \if{html}{\out{
}} \describe{ \item{\code{deep}}{Whether to make a deep clone.} } \if{html}{\out{
}} } } }