Commit 9ddedbf1 authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Changing dontrun to donttest for better checks of the package.

parent 9f6295db
......@@ -174,28 +174,23 @@ County and state fields will be included as appropriate.</p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='co'>#All data for a county</span>
<pre class="examples"><div class='input'><span class='co'>#All data for a county</span>
<span class='no'>allegheny</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"Pennsylvania"</span>,<span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='st'>"Allegheny"</span>)
<span class='co'>#Data for an entire state for certain years</span>
<span class='no'>ohio</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>years</span><span class='kw'>=</span><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>2000</span>,<span class='fl'>2005</span>,<span class='fl'>2010</span>),<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"OH"</span>, <span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)
<span class='no'>ohio</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>years</span><span class='kw'>=</span><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>2000</span>,<span class='fl'>2005</span>,<span class='fl'>2010</span>),<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"OH"</span>, <span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</div><div class='output co'>#&gt; <span class='error'>Error in if (exists("countyCd") &amp;&amp; toupper(countyCd) != "ALL" &amp;&amp; countyCd != "") { for (c in countyCd) { code &lt;- countyCdLookup(state = stateCd, county = c, outputType = "id") countyID &lt;- c(countyID, code) }}: missing value where TRUE/FALSE needed</span></div><div class='input'>
<span class='co'>#Data for an entire state, county by county</span>
<span class='no'>pr</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>years</span><span class='kw'>=</span><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>2000</span>,<span class='fl'>2005</span>,<span class='fl'>2010</span>),<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"PR"</span>,<span class='kw'>countyCd</span><span class='kw'>=</span><span class='st'>"ALL"</span>)
<span class='co'>#All national-scale data, transforming data frame to named columns from named rows</span>
<span class='no'>national</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>transform</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)
<span class='no'>national</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>transform</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>)</div><div class='output co'>#&gt; <span class='error'>Error in if (exists("countyCd") &amp;&amp; toupper(countyCd) != "ALL" &amp;&amp; countyCd != "") { for (c in countyCd) { code &lt;- countyCdLookup(state = stateCd, county = c, outputType = "id") countyID &lt;- c(countyID, code) }}: missing value where TRUE/FALSE needed</span></div><div class='input'>
<span class='co'>#Washington, DC data</span>
<span class='no'>dc</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"DC"</span>,<span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)
<span class='no'>dc</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"DC"</span>,<span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>)</div><div class='output co'>#&gt; <span class='error'>Error in if (exists("countyCd") &amp;&amp; toupper(countyCd) != "ALL" &amp;&amp; countyCd != "") { for (c in countyCd) { code &lt;- countyCdLookup(state = stateCd, county = c, outputType = "id") countyID &lt;- c(countyID, code) }}: missing value where TRUE/FALSE needed</span></div><div class='input'>
<span class='co'>#data for multiple counties, with different input formatting</span>
<span class='no'>paData</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"42"</span>,<span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"Allegheny County"</span>, <span class='st'>"BUTLER"</span>, <span class='fl'>1</span>, <span class='st'>"031"</span>))
<span class='co'>#retrieving two specific categories for an entire state</span>
<span class='no'>ks</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"KS"</span>, <span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>categories</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"IT"</span>,<span class='st'>"LI"</span>))
<span class='co'># }</span></pre>
<span class='no'>ks</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuse</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"KS"</span>, <span class='kw'>countyCd</span> <span class='kw'>=</span> <span class='kw'>NULL</span>, <span class='kw'>categories</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"IT"</span>,<span class='st'>"LI"</span>))</div><div class='output co'>#&gt; <span class='error'>Error in if (exists("countyCd") &amp;&amp; toupper(countyCd) != "ALL" &amp;&amp; countyCd != "") { for (c in countyCd) { code &lt;- countyCdLookup(state = stateCd, county = c, outputType = "id") countyID &lt;- c(countyID, code) }}: missing value where TRUE/FALSE needed</span></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -204,8 +204,7 @@ and S is the statistic code (if applicable).</p>
<pre class="examples"><div class='input'><span class='no'>site_id</span> <span class='kw'>&lt;-</span> <span class='st'>'05114000'</span>
<span class='no'>parameterCd</span> <span class='kw'>&lt;-</span> <span class='st'>'00060'</span>
<span class='no'>startDate</span> <span class='kw'>&lt;-</span> <span class='st'>"2014-10-10"</span>
<span class='no'>endDate</span> <span class='kw'>&lt;-</span> <span class='st'>"2014-10-10"</span></div><span class='co'># NOT RUN {</span>
<span class='no'>rawData</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuv</span>(<span class='no'>site_id</span>,<span class='no'>parameterCd</span>,<span class='no'>startDate</span>,<span class='no'>endDate</span>)
<span class='no'>endDate</span> <span class='kw'>&lt;-</span> <span class='st'>"2014-10-10"</span></div><div class='input'><span class='no'>rawData</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuv</span>(<span class='no'>site_id</span>,<span class='no'>parameterCd</span>,<span class='no'>startDate</span>,<span class='no'>endDate</span>)
<span class='no'>rawData_today</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuv</span>(<span class='no'>site_id</span>, <span class='no'>parameterCd</span>, <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/Sys.time'>Sys.Date</a></span>(),<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/Sys.time'>Sys.Date</a></span>())
......@@ -218,8 +217,7 @@ and S is the statistic code (if applicable).</p>
<span class='co'># Adding 'Z' to the time indicates to the web service to call the data with UTC time:</span>
<span class='no'>GMTdata</span> <span class='kw'>&lt;-</span> <span class='fu'>readNWISuv</span>(<span class='no'>site_id</span>,<span class='no'>parameterCd</span>,
<span class='st'>"2014-10-10T00:00Z"</span>, <span class='st'>"2014-10-10T23:59Z"</span>)
<span class='co'># }</span><div class='input'>
<span class='st'>"2014-10-10T00:00Z"</span>, <span class='st'>"2014-10-10T23:59Z"</span>)</div><div class='input'>
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
......
......@@ -234,8 +234,7 @@ for more information on time zones.</p></td>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>nameToUse</span> <span class='kw'>&lt;-</span> <span class='st'>"pH"</span>
<pre class="examples"><div class='input'><span class='no'>nameToUse</span> <span class='kw'>&lt;-</span> <span class='st'>"pH"</span>
<span class='no'>pHData</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPdata</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-04024315"</span>,<span class='kw'>characteristicName</span><span class='kw'>=</span><span class='no'>nameToUse</span>)
<span class='no'>pHData_summary</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPdata</span>(<span class='kw'>bBox</span><span class='kw'>=</span><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(-<span class='fl'>90.10</span>,<span class='fl'>42.67</span>,-<span class='fl'>88.64</span>,<span class='fl'>43.35</span>),
<span class='kw'>characteristicName</span><span class='kw'>=</span><span class='no'>nameToUse</span>, <span class='kw'>querySummary</span><span class='kw'>=</span><span class='fl'>TRUE</span>)
......@@ -279,9 +278,7 @@ for more information on time zones.</p></td>
<span class='co'># Biological data:</span>
<span class='no'>bioData</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPdata</span>(<span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"WI"</span>,
<span class='kw'>countycode</span> <span class='kw'>=</span> <span class='st'>"Dane"</span>,
<span class='kw'>providers</span> <span class='kw'>=</span> <span class='st'>"BIODATA"</span>)
<span class='co'># }</span></pre>
<span class='kw'>providers</span> <span class='kw'>=</span> <span class='st'>"BIODATA"</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -263,14 +263,12 @@ for more information on time zones.</p></td>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>rawPcode</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPqw</span>(<span class='st'>'USGS-01594440'</span>,<span class='st'>'01075'</span>, <span class='st'>''</span>, <span class='st'>''</span>)
<pre class="examples"><div class='input'><span class='no'>rawPcode</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPqw</span>(<span class='st'>'USGS-01594440'</span>,<span class='st'>'01075'</span>, <span class='st'>''</span>, <span class='st'>''</span>)
<span class='no'>rawCharacteristicName</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPqw</span>(<span class='st'>'WIDNR_WQX-10032762'</span>,<span class='st'>'Specific conductance'</span>, <span class='st'>''</span>, <span class='st'>''</span>)
<span class='no'>rawPHsites</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPqw</span>(<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>'USGS-05406450'</span>, <span class='st'>'USGS-05427949'</span>,<span class='st'>'WIDNR_WQX-133040'</span>), <span class='st'>'pH'</span>,<span class='st'>''</span>,<span class='st'>''</span>)
<span class='no'>nwisEx</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPqw</span>(<span class='st'>'USGS-04024000'</span>,<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>'34247'</span>,<span class='st'>'30234'</span>,<span class='st'>'32104'</span>,<span class='st'>'34220'</span>),<span class='st'>''</span>,<span class='st'>'2012-12-20'</span>)
<span class='no'>nwisEx.summary</span> <span class='kw'>&lt;-</span> <span class='fu'>readWQPqw</span>(<span class='st'>'USGS-04024000'</span>,<span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>'34247'</span>,<span class='st'>'30234'</span>,<span class='st'>'32104'</span>,<span class='st'>'34220'</span>),
<span class='st'>''</span>,<span class='st'>'2012-12-20'</span>, <span class='kw'>querySummary</span><span class='kw'>=</span><span class='fl'>TRUE</span>)
<span class='co'># }</span></pre>
<span class='st'>''</span>,<span class='st'>'2012-12-20'</span>, <span class='kw'>querySummary</span><span class='kw'>=</span><span class='fl'>TRUE</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -219,15 +219,13 @@ form of the name must be like pXXXXX, where XXXXX is the parameter code.</p></td
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'><span class='no'>siteWithTwo</span> <span class='kw'>&lt;-</span> <span class='st'>'01480015'</span>
<span class='no'>startDate</span> <span class='kw'>&lt;-</span> <span class='st'>"2012-09-01"</span>
<span class='no'>endDate</span> <span class='kw'>&lt;-</span> <span class='st'>"2012-10-01"</span></div><span class='co'># NOT RUN {</span>
<span class='no'>url2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='constructNWISURL.html'>constructNWISURL</a></span>(<span class='no'>siteWithTwo</span>, <span class='st'>"00060"</span>,<span class='no'>startDate</span>,<span class='no'>endDate</span>,<span class='st'>'dv'</span>)
<span class='no'>endDate</span> <span class='kw'>&lt;-</span> <span class='st'>"2012-10-01"</span></div><div class='input'><span class='no'>url2</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='constructNWISURL.html'>constructNWISURL</a></span>(<span class='no'>siteWithTwo</span>, <span class='st'>"00060"</span>,<span class='no'>startDate</span>,<span class='no'>endDate</span>,<span class='st'>'dv'</span>)
<span class='no'>twoResults</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='importWaterML1.html'>importWaterML1</a></span>(<span class='no'>url2</span>,<span class='fl'>TRUE</span>)
<span class='no'>twoResults</span> <span class='kw'>&lt;-</span> <span class='fu'>renameNWISColumns</span>(<span class='no'>twoResults</span>)
<span class='no'>url2RDB</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='constructNWISURL.html'>constructNWISURL</a></span>(<span class='no'>siteWithTwo</span>,<span class='st'>"00060"</span>,
<span class='no'>startDate</span>,<span class='no'>endDate</span>,<span class='st'>"dv"</span>,<span class='kw'>format</span><span class='kw'>=</span><span class='st'>"tsv"</span>)
<span class='no'>rdbResults</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='importRDB1.html'>importRDB1</a></span>(<span class='no'>url2RDB</span>)
<span class='no'>rdbResults</span> <span class='kw'>&lt;-</span> <span class='fu'>renameNWISColumns</span>(<span class='no'>rdbResults</span>)
<span class='co'># }</span></pre>
<span class='no'>rdbResults</span> <span class='kw'>&lt;-</span> <span class='fu'>renameNWISColumns</span>(<span class='no'>rdbResults</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -146,12 +146,9 @@ you want to use options: <code><a href='https://www.rdocumentation.org/packages/
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><div class='input'>
</div><span class='co'># NOT RUN {</span>
<span class='fu'>setAccess</span>(<span class='st'>'internal'</span>)
<span class='fu'>setAccess</span>(<span class='st'>'public'</span>)
<span class='co'># }</span><div class='input'>
</div><div class='input'><span class='fu'>setAccess</span>(<span class='st'>'internal'</span>)</div><div class='output co'>#&gt; <span class='message'>setting access to internal</span></div><div class='input'>
<span class='fu'>setAccess</span>(<span class='st'>'public'</span>)</div><div class='output co'>#&gt; <span class='message'>setting access to public</span></div><div class='input'>
</div><div class='input'>
</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
......
......@@ -185,15 +185,13 @@ for more information.</p>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>availableData</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISdata</span>(<span class='kw'>siteNumber</span> <span class='kw'>=</span> <span class='st'>'05114000'</span>)
<pre class="examples"><div class='input'><span class='no'>availableData</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISdata</span>(<span class='kw'>siteNumber</span> <span class='kw'>=</span> <span class='st'>'05114000'</span>)
<span class='co'># To find just unit value ('instantaneous') data:</span>
<span class='no'>uvData</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISdata</span>(<span class='kw'>siteNumber</span> <span class='kw'>=</span> <span class='st'>'05114000'</span>,<span class='kw'>service</span><span class='kw'>=</span><span class='st'>"uv"</span>)
<span class='no'>uvDataMulti</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISdata</span>(<span class='kw'>siteNumber</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>'05114000'</span>,<span class='st'>'09423350'</span>),<span class='kw'>service</span><span class='kw'>=</span><span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"uv"</span>,<span class='st'>"dv"</span>))
<span class='no'>flowAndTemp</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISdata</span>(<span class='kw'>stateCd</span> <span class='kw'>=</span> <span class='st'>"WI"</span>, <span class='kw'>service</span> <span class='kw'>=</span> <span class='st'>"uv"</span>,
<span class='kw'>parameterCd</span> <span class='kw'>=</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='st'>"00060"</span>,<span class='st'>"00010"</span>),
<span class='kw'>statCd</span> <span class='kw'>=</span> <span class='st'>"00003"</span>)
<span class='co'># }</span></pre>
<span class='kw'>statCd</span> <span class='kw'>=</span> <span class='st'>"00003"</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -163,10 +163,8 @@ list (or lists) can also be supplied.</p></td>
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>siteListPhos</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISsites</span>(<span class='kw'>stateCd</span><span class='kw'>=</span><span class='st'>"OH"</span>,<span class='kw'>parameterCd</span><span class='kw'>=</span><span class='st'>"00665"</span>)
<span class='no'>oneSite</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISsites</span>(<span class='kw'>sites</span><span class='kw'>=</span><span class='st'>"05114000"</span>)
<span class='co'># }</span></pre>
<pre class="examples"><div class='input'><span class='no'>siteListPhos</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISsites</span>(<span class='kw'>stateCd</span><span class='kw'>=</span><span class='st'>"OH"</span>,<span class='kw'>parameterCd</span><span class='kw'>=</span><span class='st'>"00665"</span>)
<span class='no'>oneSite</span> <span class='kw'>&lt;-</span> <span class='fu'>whatNWISsites</span>(<span class='kw'>sites</span><span class='kw'>=</span><span class='st'>"05114000"</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -148,14 +148,12 @@ Arguments to the function should be based on <a href='https://www.waterqualityda
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>site1</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPdata</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-01594440"</span>)
<pre class="examples"><div class='input'><span class='no'>site1</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPdata</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-01594440"</span>)
<span class='no'>type</span> <span class='kw'>&lt;-</span> <span class='st'>"Stream"</span>
<span class='no'>sites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPdata</span>(<span class='kw'>countycode</span><span class='kw'>=</span><span class='st'>"US:55:025"</span>,<span class='kw'>siteType</span><span class='kw'>=</span><span class='no'>type</span>)
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPdata</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)
<span class='co'># }</span></pre>
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPdata</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -144,11 +144,10 @@ Arguments to the function should be based on <a href='https://www.waterqualityda
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<pre class="examples"><div class='input'>
<span class='no'>type</span> <span class='kw'>&lt;-</span> <span class='st'>"Stream"</span>
<span class='no'>sites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPmetrics</span>(<span class='kw'>countycode</span><span class='kw'>=</span><span class='st'>"US:55:025"</span>,<span class='kw'>siteType</span><span class='kw'>=</span><span class='no'>type</span>)
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPmetrics</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)
<span class='co'># }</span></pre>
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPmetrics</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -144,13 +144,9 @@ Arguments to the function should be based on <a href='https://www.waterqualityda
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>site1</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsamples</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-01594440"</span>)
<pre class="examples"><div class='input'><span class='no'>site1</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsamples</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-01594440"</span>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Number of rows returned not matched in header</span></div><div class='input'>
<span class='no'>type</span> <span class='kw'>&lt;-</span> <span class='st'>"Stream"</span>
<span class='no'>sites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsamples</span>(<span class='kw'>countycode</span><span class='kw'>=</span><span class='st'>"US:55:025"</span>,<span class='kw'>siteType</span><span class='kw'>=</span><span class='no'>type</span>)
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsamples</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)
<span class='co'># }</span></pre>
<span class='no'>sites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsamples</span>(<span class='kw'>countycode</span><span class='kw'>=</span><span class='st'>"US:55:025"</span>,<span class='kw'>siteType</span><span class='kw'>=</span><span class='no'>type</span>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Number of rows returned not matched in header</span></div><div class='input'><span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsamples</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)</div><div class='output co'>#&gt; <span class='warning'>Warning: Number of rows returned not matched in header</span></div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -183,13 +183,11 @@ Arguments to the function should be based on <a href='https://www.waterqualityda
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
<pre class="examples"><span class='co'># NOT RUN {</span>
<span class='no'>site1</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsites</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-01594440"</span>)
<pre class="examples"><div class='input'><span class='no'>site1</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsites</span>(<span class='kw'>siteid</span><span class='kw'>=</span><span class='st'>"USGS-01594440"</span>)
<span class='no'>type</span> <span class='kw'>&lt;-</span> <span class='st'>"Stream"</span>
<span class='no'>sites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsites</span>(<span class='kw'>countycode</span><span class='kw'>=</span><span class='st'>"US:55:025"</span>,<span class='kw'>siteType</span><span class='kw'>=</span><span class='no'>type</span>)
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsites</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)
<span class='co'># }</span></pre>
<span class='no'>lakeSites</span> <span class='kw'>&lt;-</span> <span class='fu'>whatWQPsites</span>(<span class='kw'>siteType</span> <span class='kw'>=</span> <span class='st'>"Lake, Reservoir, Impoundment"</span>, <span class='kw'>statecode</span> <span class='kw'>=</span> <span class='st'>"US:55"</span>)</div></pre>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<h2>Contents</h2>
......
......@@ -23,7 +23,7 @@ queries will return a water year column for the start and end dates
of the data.
}
\examples{
\dontrun{
\donttest{
dataTemp <- readNWISdata(stateCd="OH",parameterCd="00010", service="dv")
dataTemp <- addWaterYear(dataTemp)
......
......@@ -25,7 +25,7 @@ endDate <- "2012-10-01"
offering <- '00003'
property <- '00060'
obs_url <- constructNWISURL(siteNumber,property,startDate,endDate,'dv')
\dontrun{
\donttest{
rawData <- getWebServiceData(obs_url)
}
}
......@@ -26,7 +26,7 @@ This function accepts a url parameter for a WaterML2 getObservation. This functi
but the general functionality is correct.
}
\examples{
\dontrun{
\donttest{
obs_url <- paste("http://cida.usgs.gov/ngwmn_cache/sos?request=GetObservation",
"service=SOS","version=2.0.0",
"observedProperty=urn:ogc:def:property:OGC:GroundWaterLevel",
......
......@@ -64,7 +64,7 @@ property <- "00060"
obs_url <- constructNWISURL(site_id,property,
startDate,endDate,"dv",format="tsv")
\dontrun{
\donttest{
data <- importRDB1(obs_url)
urlMultiPcodes <- constructNWISURL("04085427",c("00060","00010"),
......
......@@ -26,7 +26,7 @@ Imports data from the Water Quality Portal based on a specified url.
# These examples require an internet connection to run
## Examples take longer than 5 seconds:
\dontrun{
\donttest{
rawSampleURL <- constructWQPURL('USGS-01594440','01075', '', '')
rawSample <- importWQP(rawSampleURL)
......
......@@ -56,7 +56,7 @@ endDate <- "2012-10-01"
offering <- '00003'
property <- '00060'
obs_url <- constructNWISURL(site_id,property,startDate,endDate,'dv')
\dontrun{
\donttest{
data <- importWaterML1(obs_url, asDateTime=TRUE)
groundWaterSite <- "431049071324301"
......
......@@ -27,7 +27,7 @@ URL <- paste(baseURL, "sites=01646500",
"endDT=2014-09-08",
"statCd=00003",
"parameterCd=00060",sep="&")
\dontrun{
\donttest{
timesereies <- importWaterML2(URL, asDateTime=TRUE, tz="UTC")
}
}
......@@ -25,7 +25,7 @@ for more information on time zones.}
Only water level data and site locations and names are currently available through the web service.
}
\examples{
\dontrun{
\donttest{
#one site
site <- "USGS.430427089284901"
oneSite <- readNGWMNdata(siteNumbers = site, service = "observation")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment