RSelenium package failing tests
> rD <- RSelenium::rsDriver(browser = "phantomjs")
now dyn.load("/opt/R/3.6.3/lib/R/library/XML/libs/XML.so") ...
Garbage collection 10 = 9+0+1 (level 0) ...
25.6 Mbytes of cons cells used (75%)
20.4 Mbytes of vectors used (32%)
Garbage collection 11 = 10+0+1 (level 0) ...
29.2 Mbytes of cons cells used (85%)
21.2 Mbytes of vectors used (33%)
Garbage collection 12 = 10+1+1 (level 1) ...
22.6 Mbytes of cons cells used (66%)
5.6 Mbytes of vectors used (9%)
Garbage collection 13 = 11+1+1 (level 0) ...
23.5 Mbytes of cons cells used (68%)
5.8 Mbytes of vectors used (9%)
now dyn.load("/opt/R/3.6.3/lib/R/library/bitops/libs/bitops.so") ...
now dyn.load("/opt/R/3.6.3/lib/R/library/caTools/libs/caTools.so") ...
now dyn.load("/opt/R/3.6.3/lib/R/library/openssl/libs/openssl.so") ...
Garbage collection 14 = 12+1+1 (level 0) ...
24.0 Mbytes of cons cells used (70%)
5.9 Mbytes of vectors used (9%)
now dyn.load("/opt/R/3.6.3/lib/R/library/Rcpp/libs/Rcpp.so") ...
Garbage collection 15 = 13+1+1 (level 0) ...
27.0 Mbytes of cons cells used (79%)
6.7 Mbytes of vectors used (10%)
Garbage collection 16 = 14+1+1 (level 0) ...
27.1 Mbytes of cons cells used (79%)
6.7 Mbytes of vectors used (10%)
now dyn.load("/opt/R/3.6.3/lib/R/library/semver/libs/semver.so") ...
checking Selenium Server versions:
now dyn.load("/opt/R/3.6.3/lib/R/library/yaml/libs/yaml.so") ...
BEGIN: PREDOWNLOAD
Garbage collection 17 = 15+1+1 (level 0) ...
28.9 Mbytes of cons cells used (84%)
6.9 Mbytes of vectors used (11%)
now dyn.load("/opt/R/3.6.3/lib/R/library/jsonlite/libs/jsonlite.so") ...
now dyn.load("/opt/R/3.6.3/lib/R/library/curl/libs/curl.so") ...
Garbage collection 18 = 15+2+1 (level 1) ...
30.0 Mbytes of cons cells used (88%)
7.4 Mbytes of vectors used (11%)
now dyn.load("/opt/R/3.6.3/lib/R/library/xml2/libs/xml2.so") ...
Garbage collection 19 = 15+2+2 (level 2) ...
29.7 Mbytes of cons cells used (44%)
7.2 Mbytes of vectors used (11%)
now dyn.load("/opt/R/3.6.3/lib/R/library/rappdirs/libs/rappdirs.so") ...
BEGIN: DOWNLOAD
Creating directory: ~/.local/share/binman_seleniumserver/generic/3.141.59
Downloading binary: https://www.googleapis.com/download/storage/v1/b/sele...
Creating directory: ~/.local/share/binman_seleniumserver/generic/4.0.0-al...
Downloading binary: https://www.googleapis.com/download/storage/v1/b/sele...
Creating directory: ~/.local/share/binman_seleniumserver/generic/4.0.0-al...
Downloading binary: https://www.googleapis.com/download/storage/v1/b/sele...
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: ~/.local/share/binman_chromedriver/linux64/88.0.4324....
Downloading binary: https://www.googleapis.com/download/storage/v1/b/chro...
Creating directory: ~/.local/share/binman_chromedriver/linux64/88.0.4324....
Downloading binary: https://www.googleapis.com/download/storage/v1/b/chro...
Creating directory: ~/.local/share/binman_chromedriver/linux64/89.0.4389....
Downloading binary: https://www.googleapis.com/download/storage/v1/b/chro...
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
Error in open.connection(con, "rb") : HTTP error 403.
Calls: <Anonymous> ... parse_and_simplify -> parseJSON -> parse_con -> open -> open.connection
Execution halted
RSelenium... FAILED
Makefile:14: recipe for target 'test-all-xenial' failed
Not clear to me where this error comes from.
When checking TravisCI I found that R 3.6.3 is being used, as expected, that caTools installs properly, but that RSelenium fails to obtain the geckodriver.
Investigation resulted in my opening an issue with the wdman package.
21): succeeded '/opt/R/3.6.3/lib/R/bin/R CMD INSTALL -l '/opt/R/3.6.3/lib/R/library' /tmp/Rtmpb40myD/downloaded_packages/RSelenium_1.7.7.tar.gz'
The downloaded source packages are in
‘/tmp/Rtmpb40myD/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ...> rD <- RSelenium::rsDriver(browser = "phantomjs")
done
now dyn.load("/opt/R/3.6.3/lib/R/library/XML/libs/XML.so") ...
Garbage collection 10 = 9+0+1 (level 0) ...
25.6 Mbytes of cons cells used (75%)
20.4 Mbytes of vectors used (32%)
Garbage collection 11 = 10+0+1 (level 0) ...
29.2 Mbytes of cons cells used (85%)
21.2 Mbytes of vectors used (33%)
Garbage collection 12 = 10+1+1 (level 1) ...
22.6 Mbytes of cons cells used (66%)
5.6 Mbytes of vectors used (9%)
Garbage collection 13 = 11+1+1 (level 0) ...
23.5 Mbytes of cons cells used (68%)
5.8 Mbytes of vectors used (9%)
now dyn.load("/opt/R/3.6.3/lib/R/library/bitops/libs/bitops.so") ...
now dyn.load("/opt/R/3.6.3/lib/R/library/caTools/libs/caTools.so") ...
now dyn.load("/opt/R/3.6.3/lib/R/library/openssl/libs/openssl.so") ...
Garbage collection 14 = 12+1+1 (level 0) ...
24.0 Mbytes of cons cells used (70%)
5.9 Mbytes of vectors used (9%)
now dyn.load("/opt/R/3.6.3/lib/R/library/Rcpp/libs/Rcpp.so") ...
Garbage collection 15 = 13+1+1 (level 0) ...
27.0 Mbytes of cons cells used (79%)
6.7 Mbytes of vectors used (10%)
Garbage collection 16 = 14+1+1 (level 0) ...
27.1 Mbytes of cons cells used (79%)
6.7 Mbytes of vectors used (10%)
now dyn.load("/opt/R/3.6.3/lib/R/library/semver/libs/semver.so") ...
checking Selenium Server versions:
now dyn.load("/opt/R/3.6.3/lib/R/library/yaml/libs/yaml.so") ...
BEGIN: PREDOWNLOAD
Garbage collection 17 = 15+1+1 (level 0) ...
28.9 Mbytes of cons cells used (84%)
6.9 Mbytes of vectors used (11%)
now dyn.load("/opt/R/3.6.3/lib/R/library/jsonlite/libs/jsonlite.so") ...
now dyn.load("/opt/R/3.6.3/lib/R/library/curl/libs/curl.so") ...
Garbage collection 18 = 15+2+1 (level 1) ...
30.0 Mbytes of cons cells used (88%)
7.4 Mbytes of vectors used (11%)
now dyn.load("/opt/R/3.6.3/lib/R/library/xml2/libs/xml2.so") ...
Garbage collection 19 = 15+2+2 (level 2) ...
29.7 Mbytes of cons cells used (44%)
7.2 Mbytes of vectors used (11%)
now dyn.load("/opt/R/3.6.3/lib/R/library/rappdirs/libs/rappdirs.so") ...
BEGIN: DOWNLOAD
Creating directory: ~/.local/share/binman_seleniumserver/generic/3.141.59
Downloading binary: https://www.googleapis.com/download/storage/v1/b/sele...
Creating directory: ~/.local/share/binman_seleniumserver/generic/4.0.0-al...
Downloading binary: https://www.googleapis.com/download/storage/v1/b/sele...
Creating directory: ~/.local/share/binman_seleniumserver/generic/4.0.0-al...
Downloading binary: https://www.googleapis.com/download/storage/v1/b/sele...
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: ~/.local/share/binman_chromedriver/linux64/88.0.4324....
Downloading binary: https://www.googleapis.com/download/storage/v1/b/chro...
Creating directory: ~/.local/share/binman_chromedriver/linux64/88.0.4324....
Downloading binary: https://www.googleapis.com/download/storage/v1/b/chro...
Creating directory: ~/.local/share/binman_chromedriver/linux64/89.0.4389....
Downloading binary: https://www.googleapis.com/download/storage/v1/b/chro...
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: ~/.local/share/binman_geckodriver/linux64/0.29.0
Downloading binary: https://github.com/mozilla/geckodriver/releases/downl...
Downloading binary: https://github.com/mozilla/geckodriver/releases/downl...
Creating directory: ~/.local/share/binman_geckodriver/linux64/0.28.0
Downloading binary: https://github.com/mozilla/geckodriver/releases/downl...
BEGIN: POSTDOWNLOAD
Error in (function (platform, file, processed, chmod) :
~/.local/share/binman_geckodriver/linux64/0.29.0/geckodriver-v0.29.0-linux64.tar.gz.asc does not appear to be a zip or tar file.
Calls: <Anonymous> ... do.call -> <Anonymous> -> Map -> mapply -> <Anonymous>
Execution halted
RSelenium... FAILED
Any news on this one? Have the same problem when try to deploy rmd with RSelenium and phantomjs.
Error in <Anonymous>: /home/shiny/.local/share/binman_geckodriver/linux64/0.29.1/geckodriver-v0.29.1-linux64.tar.gz.asc does not appear to be a zip or tar file.
Also having a similar issue when deploying app to shinyapps.io, albeit using chrome with RSelenium instead of phantomjs