Skip to content

Commit

Permalink
Merge pull request #133 from potterzot/master
Browse files Browse the repository at this point in the history
Add stop if windows until ncdf4 and grib2 issues in bug #127 are resolved.
  • Loading branch information
sckott committed Jan 25, 2016
2 parents 5b361df + 4686dc8 commit 5aef15b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/gefs.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
#' values. If lat/lon are not specified, the $data is an unprocessed matrix.
#'
#' @references \itemize{
#' \item Data description - \url{http://bit.ly/noaagefs}
#' \item Adapted from Python code written by Von P. Walden, Washington State University -
#' http://sila.cee.wsu.edu/forecasts/WeatherAndClimateDatafromNWS.html
#' \item Data description - \url{http://bit.ly/noaagefs}.
#' \item Adapted from Python code written by Von P. Walden, Washington State University.
#' }
#'
#' @author Nicholas Potter \email{potterzot@@gmail.com}
Expand Down Expand Up @@ -82,6 +81,10 @@ gefs <- function(var, lat, lon, ...) {
gefs_CONNECT <- function(date = format(Sys.time(), "%Y%m%d"),
forecast_time = c("0000", "0600", "1200", "1800")) {


# Until bug #127 is resolved
if (is_windows()) stop("gefs not implemented on windows yet", .call = FALSE)

#forecast time
forecast_time <- match.arg(forecast_time)

Expand Down
5 changes: 5 additions & 0 deletions R/zzz.r
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@ check4pkg <- function(x) {
invisible(TRUE)
}
}

#Check operating system is windows
is_windows <- function() {
.Platform$OS.type == "windows"
}

0 comments on commit 5aef15b

Please sign in to comment.