Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Smarter Update Webservice Function #106

Open
peterandrien opened this issue Apr 8, 2016 · 0 comments
Open

Smarter Update Webservice Function #106

peterandrien opened this issue Apr 8, 2016 · 0 comments

Comments

@peterandrien
Copy link

Currently the updateWebService function is very similar to the publishWebService function except that it requires the otherwise optional serviceId parameter. It would be nice if there was a function that would take a web service name and populate the serviceID parameter for users.

In the absence of this I end up writing code like the following:

id = services(ws,name = webServiceName)["Id"][1,1]

if(is.na(id)) {
  # publish the webservice
  ep <- publishWebService(ws,
                          fun = foo,
                          name = webserviceName,
                          data.frame = TRUE,
                          inputSchema = sampleInput)
} else {
  # Send update to azure 
  ep <- publishWebService(ws,
                          fun = foo,
                          name = webserviceName,
                          data.frame = TRUE,
                          inputSchema = sampleInput,
                          serviceId = id)
}

I would prefer to instead write something like:

ep <- updateWebService(ws,
                          fun = foo,
                          name = webserviceName,
                          data.frame = TRUE,
                          inputSchema = sampleInput)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants