Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance scheduled for Thursday, May 26th at 15:00 MST. Expected downtime <1 hour.
Open sidebar
Water
dataRetrieval
Commits
8c8314fa
Commit
8c8314fa
authored
Mar 18, 2016
by
Laura A DeCicco
Browse files
Merge pull request #197 from ldecicco-USGS/master
Bug fix
parents
5211c43f
8a4f6f44
Changes
2
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
8c8314fa
Package: dataRetrieval
Type: Package
Title: Retrieval Functions for USGS and EPA Hydrologic and Water Quality Data
Version: 2.5.
2
Version: 2.5.
3
Date: 2016-03-04
Authors@R: c( person("Robert", "Hirsch", role = c("aut"),
email = "rhirsch@usgs.gov"),
...
...
@@ -28,10 +28,10 @@ Depends:
R (>= 3.0)
Imports:
XML,
httr,
httr
(>= 1.0.0)
,
curl,
reshape2,
lubridate,
lubridate
(>= 1.5.0)
,
stats,
utils,
dplyr,
...
...
R/whatNWISsites.R
View file @
8c8314fa
...
...
@@ -46,9 +46,7 @@ whatNWISsites <- function(...){
rawData
<-
getWebServiceData
(
urlCall
,
encoding
=
'gzip'
)
doc
<-
xmlTreeParse
(
rawData
,
getDTD
=
FALSE
,
useInternalNodes
=
TRUE
)
doc
<-
xmlRoot
(
doc
)
doc
<-
xmlRoot
(
rawData
)
numChunks
<-
xmlSize
(
doc
)
for
(
i
in
1
:
numChunks
){
chunk
<-
doc
[[
1
]]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment