I'm trying to use the R sentimentr package on Azure ML Studio. As this package is not supported, I'm trying to install it and its dependencies as described in the documentation.
The steps that I have performed are:
downloaded Windows binaries from the R Open 3.4.4 snapshot at CRAN time machine
sentimentr_2.2.3.zipsyuzhet_1.0.4.ziptextclean_0.6.3.ziplexicon_0.7.4.ziptextshape_1.5.0.zip
zipped those zip files into a zipped folder
packages.zip- uploaded
packages.zipas a dataset to Microsoft Azure ML Studio
In my ML experiment I connect the packages.zip dataset to the "Script Bundle (Zip)" input port on "Execute R Script" and include this code:
# install R package contained in src
install.packages("src/lexicon_0.7.4.zip",
lib = ".",
repos = NULL,
verbose = TRUE)
install.packages("src/textclean_0.6.3.zip",
lib = ".",
repos = NULL,
verbose = TRUE)
install.packages("src/textshape_1.5.0.zip",
lib = ".",
repos = NULL,
verbose = TRUE)
install.packages("src/syuzhet_1.0.4.zip",
lib = ".",
repos = NULL,
verbose = TRUE)
install.packages("src/sentimentr_2.2.3.zip",
lib = ".",
repos = NULL,
verbose = TRUE)
# load libraries
library(sentimentr, lib.loc = ".", verbose = TRUE)
The experiment runs successfully, until I include a function from sentimentr:
mydata <- mydata %>%
get_sentences() %>%
sentiment()
This gives the error:
there is no package called 'textshape'
Which is difficult to understand given that the output log does not indicate an issue with the packages:
[Information] The following files have been unzipped for sourcing in path=["src"]:
[Information] Name Length Date
[Information] 1 sentimentr_2.2.3.zip 3366245 2019-08-07 14:57:00
[Information] 2 syuzhet_1.0.4.zip 2918474 2019-08-07 15:05:00
[Information] 3 textclean_0.6.3.zip 1154814 2019-08-07 15:13:00
[Information] 4 lexicon_0.7.4.zip 4551995 2019-08-07 15:17:00
[Information] 5 textshape_1.5.0.zip 463095 2019-08-07 15:42:00
[Information] Loading objects:
[Information] port1
[Information] [1] "Loading variable port1..."
[Information] package 'lexicon' successfully unpacked and MD5 sums checked
[Information] package 'textclean' successfully unpacked and MD5 sums checked
[Information] package 'textshape' successfully unpacked and MD5 sums checked
[Information] package 'syuzhet' successfully unpacked and MD5 sums checked
[Information] package 'sentimentr' successfully unpacked and MD5 sums checked
Has anyone seen this, or similar issues? Is it possible that "successfully unpacked" is not the same as successfully installed and usable?