Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
fixed namespace calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
emhart committed Apr 2, 2014
1 parent 04a35c0 commit 01070f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/get_climate_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ get_climate_data <- function(locator,geo_type,type, cvar, start, end){
stop(paste("You entered a country for which there is no data. ",locator," is not a country with any data"))
}

data_out <- jsonlite:::fromJSON(raw_data)
data_out <- jsonlite::fromJSON(raw_data)
if( type == "mavg" && start < 2010){
### Unpack the lists
tmp <- data.frame(sapply(data_out$monthV,unlist))
Expand Down
2 changes: 1 addition & 1 deletion R/get_ensemble_climate_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ get_ensemble_climate_data <- function(locator,geo_type,type, cvar, start, end){
extension <- ".json"
full_url <- paste(base_url,data_url,extension,sep="")
raw_data <- try(content(GET(full_url),as="text"),silent=T)
data_out <- jsonlite:::fromJSON(raw_data)
data_out <- jsonlite::fromJSON(raw_data)


if(sum(grep("unexpected",data_out)) > 0){
Expand Down
2 changes: 1 addition & 1 deletion R/get_historical_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if(sum(grep("unexpected",raw_data)) > 0){
stop(paste("You entered a country for which there is no data. ",locator," is not a country with any data"))
}

data_out <- jsonlite:::fromJSON(raw_data)
data_out <- jsonlite::fromJSON(raw_data)
# data_out <- data.frame(do.call(rbind, parsed_data))

if(time_scale == "month"){
Expand Down

0 comments on commit 01070f8

Please sign in to comment.