Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stop if windows until ncdf4 and grib2 issues in bug #127 are resolved. #133

Merged
merged 5 commits into from
Jan 25, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}