aboutsummaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-02-19 18:55:27 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-02-19 18:55:27 +0100
commit95a067f0ed8fb580cc3652acd4c7885eb000244a (patch)
tree962082965df5bc561e109f7670a6062a0300f0a8 /docs/reference
parent132bd73395033a95163080517b5a7c371cf512a2 (diff)
Skip plotting in examples if grConvert is missing
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/chent.html8
-rw-r--r--docs/reference/plot.chent.html4
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>
#&gt; PubChem synonyms (up to 10):
#&gt; [1] "957" "1-octanol" "Octan-1-ol" "octanol"
#&gt; [5] "111-87-5" "N-octanol" "Capryl alcohol" "Octyl alcohol"
-#&gt; [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'>&lt;-</span> <span class='no'>chent</span>$<span class='fu'>new</span>(<span class='st'>"caffeine"</span>)</div><div class='output co'>#&gt; <span class='message'>PubChem:</span></div><div class='output co'>#&gt; <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/cids/JSON</span></div><div class='output co'>#&gt; <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'>#&gt; <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/synonyms/JSON</span></div><div class='output co'>#&gt; <span class='message'>Trying to get chemical information from RDKit using PubChem_Canonical SMILES</span>
+#&gt; [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'>&lt;-</span> <span class='no'>chent</span>$<span class='fu'>new</span>(<span class='st'>"caffeine"</span>)</div><div class='output co'>#&gt; <span class='message'>PubChem:</span></div><div class='output co'>#&gt; <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/cids/JSON</span></div><div class='output co'>#&gt; <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'>#&gt; <span class='message'>https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/synonyms/JSON</span></div><div class='output co'>#&gt; <span class='message'>Trying to get chemical information from RDKit using PubChem_Canonical SMILES</span>
#&gt; <span class='message'>CN1C=NC2=C1C(=O)N(C(=O)N2C)C</span></div><div class='output co'>#&gt; <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'>#&gt; &lt;chent&gt;
#&gt; Identifier $identifier caffeine
#&gt; InChI Key $inchikey RYYVLZVUVIJVGH-UHFFFAOYSA-N
@@ -172,7 +174,9 @@ configured for use with PythonInR</p></dd>
#&gt; [3] "58-08-2" "Guaranine"
#&gt; [5] "1,3,7-Trimethylxanthine" "Thein"
#&gt; [7] "Cafeina" "Methyltheobromine"
-#&gt; [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>
+#&gt; [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 @@
#&gt; [3] "58-08-2" "Guaranine"
#&gt; [5] "1,3,7-Trimethylxanthine" "Thein"
#&gt; [7] "Cafeina" "Methyltheobromine"
-#&gt; [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>
+#&gt; [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>

Contact - Imprint