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

Default request as function default value #5

Closed
retostauffer opened this issue Jan 23, 2019 · 1 comment
Closed

Default request as function default value #5

retostauffer opened this issue Jan 23, 2019 · 1 comment

Comments

@retostauffer
Copy link
Contributor

In wf_request a default is set for the request input parameter. I would set this as one of the required parameters (line 38+):

In addition, don't you think that the default transfer should be set to TRUE? I guess that the 'standard-user' might have easy access to the data and will not use ecmwfr as a 'queue-batch-submit script'?

wf_request <- function(
  email,
  path = tempdir(),
  time_out = ifelse(request$dataset == "mars", 3*3600, 3600),
  transfer = FALSE,
  request = list(stream = "oper",
                 levtype = "sfc",
                 param = "167.128",
                 dataset = "interim",
                 step = "0",
                 grid = "0.75/0.75",
                 time = "00",
                 date = "2014-07-01/to/2014-07-02",
                 type = "an",
                 class = "ei",
                 area = "50/10/51/11",
                 format = "netcdf",
                 target = "tmp.nc"),
  verbose = TRUE

@khufkens
Copy link
Member

removed default query and shuffled the order in wf_request()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants