diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2019-02-19 18:55:27 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2019-02-19 18:55:27 +0100 |
commit | 95a067f0ed8fb580cc3652acd4c7885eb000244a (patch) | |
tree | 962082965df5bc561e109f7670a6062a0300f0a8 /docs/reference | |
parent | 132bd73395033a95163080517b5a7c371cf512a2 (diff) |
Skip plotting in examples if grConvert is missing
Diffstat (limited to 'docs/reference')
-rw-r--r-- | docs/reference/chent.html | 8 | ||||
-rw-r--r-- | docs/reference/plot.chent.html | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/docs/reference/chent.html b/docs/reference/chent.html index aa367f6..1608eb0 100644 --- a/docs/reference/chent.html +++ b/docs/reference/chent.html @@ -159,7 +159,9 @@ configured for use with PythonInR</p></dd> #> PubChem synonyms (up to 10): #> [1] "957" "1-octanol" "Octan-1-ol" "octanol" #> [5] "111-87-5" "N-octanol" "Capryl alcohol" "Octyl alcohol" -#> [9] "caprylic alcohol" "n-Octyl alcohol" </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>oct</span>)</div><div class='input'><span class='no'>caffeine</span> <span class='kw'><-</span> <span class='no'>chent</span>$<span class='fu'>new</span>(<span class='st'>"caffeine"</span>)</div><div class='output co'>#> <span class='message'>PubChem:</span></div><div class='output co'>#> <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/cids/JSON</span></div><div class='output co'>#> <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/property/MolecularFormula,MolecularWeight,CanonicalSMILES,IsomericSMILES,InChI,InChIKey,IUPACName,XLogP,TPSA,Complexity,Charge,HBondDonorCount,HBondAcceptorCount/JSON</span></div><div class='output co'>#> <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/synonyms/JSON</span></div><div class='output co'>#> <span class='message'>Trying to get chemical information from RDKit using PubChem_Canonical SMILES</span> +#> [9] "caprylic alcohol" "n-Octyl alcohol" </div><div class='input'><span class='kw'>if</span> (<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/ns-load'>requireNamespace</a></span>(<span class='st'>"grConvert"</span>)) { + <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>oct</span>) +}</div><div class='input'><span class='no'>caffeine</span> <span class='kw'><-</span> <span class='no'>chent</span>$<span class='fu'>new</span>(<span class='st'>"caffeine"</span>)</div><div class='output co'>#> <span class='message'>PubChem:</span></div><div class='output co'>#> <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/cids/JSON</span></div><div class='output co'>#> <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/property/MolecularFormula,MolecularWeight,CanonicalSMILES,IsomericSMILES,InChI,InChIKey,IUPACName,XLogP,TPSA,Complexity,Charge,HBondDonorCount,HBondAcceptorCount/JSON</span></div><div class='output co'>#> <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/synonyms/JSON</span></div><div class='output co'>#> <span class='message'>Trying to get chemical information from RDKit using PubChem_Canonical SMILES</span> #> <span class='message'>CN1C=NC2=C1C(=O)N(C(=O)N2C)C</span></div><div class='output co'>#> <span class='message'>Did not find chyaml file ./caffeine.yaml</span></div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/print'>print</a></span>(<span class='no'>caffeine</span>)</div><div class='output co'>#> <chent> #> Identifier $identifier caffeine #> InChI Key $inchikey RYYVLZVUVIJVGH-UHFFFAOYSA-N @@ -172,7 +174,9 @@ configured for use with PythonInR</p></dd> #> [3] "58-08-2" "Guaranine" #> [5] "1,3,7-Trimethylxanthine" "Thein" #> [7] "Cafeina" "Methyltheobromine" -#> [9] "Koffein" "Mateina" </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>caffeine</span>)</div><div class='img'><img src='chent-1.png' alt='' width='700' height='433' /></div></pre> +#> [9] "Koffein" "Mateina" </div><div class='input'><span class='kw'>if</span> (<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/ns-load'>requireNamespace</a></span>(<span class='st'>"grConvert"</span>)) { + <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>caffeine</span>) +}</div><div class='img'><img src='chent-1.png' alt='' width='700' height='433' /></div></pre> </div> <div class="col-md-3 hidden-xs hidden-sm" id="sidebar"> <h2>Contents</h2> diff --git a/docs/reference/plot.chent.html b/docs/reference/plot.chent.html index cde7a87..cc4d376 100644 --- a/docs/reference/plot.chent.html +++ b/docs/reference/plot.chent.html @@ -141,7 +141,9 @@ #> [3] "58-08-2" "Guaranine" #> [5] "1,3,7-Trimethylxanthine" "Thein" #> [7] "Cafeina" "Methyltheobromine" -#> [9] "Koffein" "Mateina" </div><div class='input'><span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>caffeine</span>)</div><div class='img'><img src='plot.chent-1.png' alt='' width='700' height='433' /></div></pre> +#> [9] "Koffein" "Mateina" </div><div class='input'><span class='kw'>if</span> (<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/ns-load'>requireNamespace</a></span>(<span class='st'>"grConvert"</span>)) { + <span class='fu'><a href='https://www.rdocumentation.org/packages/graphics/topics/plot'>plot</a></span>(<span class='no'>caffeine</span>) +}</div><div class='img'><img src='plot.chent-1.png' alt='' width='700' height='433' /></div></pre> </div> <div class="col-md-3 hidden-xs hidden-sm" id="sidebar"> <h2>Contents</h2> |