Closed dimalvovs closed 7 years ago
It seems you're not loading the package.
Try using library(magrittr)
in your code.
Like this?
findNcol <- function(df){
library("magrittr")
a<-df %>% ncol()
a %<>% sqrt
a
}
test1 <- data.frame(a=seq(1:3), b=seq(3:5))
findNcolService <- publishWebService(
ws,
fun = findNcol,
name = "findNcol",
inputSchema = test1,
packages = c("magrittr")
)
consume(findNcolService, test1)
This yields the same error. I had this working, under AzureML 0.2.10, but that one had the doubling environment issue after each API call. After upgrading to 0.2.13 code does not run anymore.
One possibility: check the version of R running in AzureML, and the version of magrittr
that gets installed. It's possible that an old version of magrittr
gets installed that doesn't contain %<>%
That's exactly what happens! The magrittr 1.0.1
gets installed, and it does have the 'backwards pipe'.
Hello, magrittr is said to be supported on AzureML, how come this not work?
output: