[R] Problem with workspace and publishWebService function in RStudio

Paul Bernal paulbernal07 at gmail.com
Thu Mar 2 16:27:45 CET 2017


Dear all,

I am trying to deploy an RStudio predictive model into Microsoft Azure
Machine Learning Studio (see code below), however, I keep getting two error
messages: (1)Error: could not find function "workspace", and (2) Error:
could not find function "publishWebService", I am wondering what could be
causing this.

This are the details of my installed RStudio:
> version
               _
platform       x86_64-w64-mingw32
arch           x86_64
os             mingw32
system         x86_64, mingw32
status
major          3
minor          3.2
year           2016
month          10
day            31
svn rev        71607
language       R
version.string R version 3.3.2 (2016-10-31)
nickname       Sincere Pumpkin Patch

require(AzureML) || installed.packages("AzureML")

library(AzureML)

install.packages("curl")
install.packages("RJSONIO")
install.packages("uuid")
install.packages("jsonlite")
install.packages("codetools")
install.packages("base64enc")
install.packages("httr")
install.packages("data.table")
install.packages("df2json")
install.packages("rjson")

if(!require("devtools")) install.packages("devtools")
devtools::install_github("RevolutionAnalytics/azureml")

#loading required packages

library(curl)
library(RJSONIO)
library(uuid)
library(jsonlite)
library(codetools)
library(base64enc)
library(httr)
library(data.table)
library(df2json)
library(rjson)
library(devtools)

#devtools::install_github("Azure-MachineLearning-ClientLibrary-R"),
"Azure", subdir="AzureML")

wsID<-'##########'

authToken<-'###############'

w<-workspace(wsID,authToken)

add<-function(x,y){return(x+y)}

newService<-publishWebService(w,'add', 'add_datas', list('x' = 'int', 'y' =
'int'), list('z' = 'int'), wsID, authToken)

	[[alternative HTML version deleted]]



More information about the R-help mailing list