windows上startServer()的资源问题

windows上startServer()的资源问题,r,rselenium,R,Rselenium,我刚从github安装了RSelenium(当我通过cran安装它时,我也遇到了同样的问题),我在windows计算机中遇到了以下错误: Error in if (file.exists(file) == FALSE) if (!missing(asText) && asText == : argument is of length zero In addition: Warning message: running command '"wmic" path win32_

我刚从github安装了RSelenium(当我通过cran安装它时,我也遇到了同样的问题),我在windows计算机中遇到了以下错误:

Error in if (file.exists(file) == FALSE) if (!missing(asText) && asText ==  : 
  argument is of length zero
In addition: Warning message:
running command '"wmic" path win32_process get Caption,Processid,Commandline /format:htable' had status 44210 
从函数
startServer()
中,这是产生错误的部分:

system2("wmic", args = c("path win32_process get Caption,Processid,Commandline", 
                                    "/format:htable"), stdout = TRUE, stderr = NULL)
当我运行此部件时,我得到以下信息:

character(0)
attr(,"status")
[1] 44210
Warning message:
running command '"wmic" path win32_process get Caption,Processid,Commandline /format:htable' had status 44210 
我的
sessionInfo()


这是赢7的问题

htable XSL样式表用于格式化
WMIC path win32\u进程的输出

使用区域设置时会导致不匹配。可能的解决办法如下:

  • 将C:\Windows\system32\wbem\en US*.xsl文件复制或移动到C:\Windows\system32\wbem\文件夹中
  • 更改区域设置以匹配Windows语言版本,然后注销并重新登录
  • 指定完整路径:WMIC process get/format:“%WINDIR%\System32\wbem\en US\csv”

  • 在R会话中运行
    system2(“wmic”,args=c(“path win32_process get Caption,Processid,Commandline)”,“/format:htable”),stdout=TRUE,stderr=NULL)时返回什么?
    在R会话中运行
    wmic path win32_process get Caption,Processid,命令行/格式:在win 7命令行上使用htable
    ,并报告它所给出的感谢。@jdharison
    无效的GET表达式。
    来自power shell,以及
    cmd
    中的
    无效的XSL格式文件名
    感谢您对此进行了研究。如果您运行
    WMIC path win32_process GET Caption^,Processid^,win 7命令行中的命令行/格式:htable
    ?还有一个关于使用Docker和RSelenium的小插曲,这将消除许多操作系统/浏览器问题。我们将对此进行研究,非常好。再来一次
    R version 3.3.1 (2016-06-21)
    Platform: x86_64-w64-mingw32/x64 (64-bit)
    Running under: Windows 7 x64 (build 7601) Service Pack 1
    
    locale:
    [1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
    [4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    
    
    attached base packages:
    [1] stats     graphics  grDevices utils     datasets  methods   base     
    
    other attached packages:
    [1] RSelenium_1.4.2 XML_3.98-1.4    RJSONIO_1.3-0   RCurl_1.95-4.8  bitops_1.0-6   
    
    loaded via a namespace (and not attached):
     [1] httr_1.2.1      R6_2.1.2        tools_3.3.1     withr_1.0.1     curl_1.0        memoise_1.0.0   knitr_1.13      git2r_0.15.0   
     [9] caTools_1.17.1  digest_0.6.9    devtools_1.11.1