can't execute rsDriver (connection refused)

后端 未结 3 1711
既然无缘
既然无缘 2020-12-01 02:23

I can\'t get anywhere with R selenium. Here\'s the first step and my output:

library(RSelenium)
rD <- rsDriver()
# checking Selenium Server versions:
#            


        
3条回答
  •  我在风中等你
    2020-12-01 02:50

    In case that is still useful, I was running into the same problem today and was able to fix it by installing a Java Development Kit (Java SE Development Kit 11.0.1).

    I was getting an error message from my computer to that effect, as well as the same R error as mentioned in this question, and it fixed it.

    For a reproducible example, I was able to replicate this tutorial.

    sessionInfo() R version 3.4.4 (2018-03-15) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS High Sierra 10.13.5

    Matrix products: default
    BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
    
    locale:
    [1] fr_CA.UTF-8/fr_CA.UTF-8/fr_CA.UTF-8/C/fr_CA.UTF-8/fr_CA.UTF-8
    
    attached base packages:
    [1] stats     graphics  grDevices utils     datasets  methods   base     
    
    other attached packages:
    [1] RSelenium_1.7.5
    
    loaded via a namespace (and not attached):
    [1] Rcpp_0.12.17     XML_3.98-1.11    binman_0.1.1     assertthat_0.2.0 rappdirs_0.3.1   bitops_1.0-6    
    [7] R6_2.2.2         jsonlite_1.5     semver_0.2.0     httr_1.3.1       curl_3.2         xml2_1.2.0      
    [13] subprocess_0.8.3 tools_3.4.4      wdman_0.2.4      yaml_2.1.18      compiler_3.4.4   caTools_1.17.1  
    [19] openssl_1.0.1 
    

提交回复
热议问题