楼主: 拂去尘缘
6750 7

[问答] Rwebdriver安装求助 [推广有奖]

  • 0关注
  • 3粉丝

副教授

65%

还不是VIP/贵宾

-

威望
0
论坛币
8031 个
通用积分
77.9384
学术水平
1 点
热心指数
2 点
信用等级
1 点
经验
14147 点
帖子
387
精华
0
在线时间
1204 小时
注册时间
2016-4-16
最后登录
2024-4-3

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
如题,Rwebdriver安装求助。
本人参考:
  1. https://blog.csdn.net/weixin_40628687/article/details/78971934
复制代码

安装Rwebdriver,但是失败,还尝试了使用install_github()
  1. library("devtools")
  2. library("githubinstall")
  3. install_github(repo= "Rwebdriver", username = "crubba")
  4. Error in parse_repo_spec(repo) :
  5. Invalid git repo specification: 'Rwebdriver'
  6. install_github(repo= "Rwebdriver-master", username = "crubba")
  7. Error in parse_repo_spec(repo) :
  8. Invalid git repo specification: 'Rwebdriver-master'
复制代码

最后,直接从github把Rwebdriver下载下来解压到R的library中,但是还是加载不上
  1. library("Rwebdriver-master")
  2. Error in library("Rwebdriver-master") :
  3.   不存在叫‘Rwebdriver-master’这个名字的程辑包
复制代码
  1. library("Rwebdriver")
  2. Error in library("Rwebdriver") :
  3.   不存在叫‘Rwebdriver’这个名字的程辑包
复制代码


求助,这种情况应该怎么办?
谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:driver drive DRI R安装 Ver

沙发
ishenweiyan 发表于 2018-12-14 08:45:51 |只看作者 |坛友微信交流群
尝试一下使用下面的安装方法:

  1. install_github("crubba/Rwebdriver")
复制代码

使用道具

藤椅
拂去尘缘 发表于 2018-12-14 13:50:35 |只看作者 |坛友微信交流群
ishenweiyan 发表于 2018-12-14 08:45
尝试一下使用下面的安装方法:
您好,谢谢您的回复,我试过之后,出现了以下情况:
  1. > install_github("crubba/Rwebdriver")
  2. Downloading GitHub repo crubba/Rwebdriver@master
  3. Installing 3 packages: bitops, RCurl, RJSONIO
  4. trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/bitops_1.0-6.zip'
  5. Content type 'application/zip' length 38625 bytes (37 KB)
  6. downloaded 37 KB

  7. trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/RCurl_1.95-4.11.zip'
  8. Content type 'application/zip' length 2969207 bytes (2.8 MB)
  9. downloaded 2.8 MB

  10. Error in download.file(url, destfile, method, mode = "wb", ...) :
  11.   (converted from warning) downloaded length 2961408 != reported length 2969207
  12. In addition: Warning messages:
  13. 1: In untar2(tarfile, files, list, exdir) :
  14.   skipping pax global extended headers
  15. 2: In untar2(tarfile, files, list, exdir) :
  16.   skipping pax global extended headers
  17. Error in download.packages(pkgs, destdir = tmpd, available = available,  :
  18.   (converted from warning) download of package ‘RCurl’ failed
复制代码

使用道具

板凳
拂去尘缘 发表于 2018-12-14 15:04:46 |只看作者 |坛友微信交流群
拂去尘缘 发表于 2018-12-14 13:50
您好,谢谢您的回复,我试过之后,出现了以下情况:
您好,安装了RJSONIO之后,就安装成功了,但是出现如下提示:
  1. Downloading GitHub repo crubba/Rwebdriver@master
  2. WARNING: Rtools is required to build R packages, but is not currently installed.

  3. Please download and install Rtools 3.5 from http://cran.r-project.org/bin/windows/Rtools/.
  4. √  checking for file 'C:\Users\pc201505\AppData\Local\Temp\Rtmp2JjGE8\remotes15746ccc4bd5\crubba-Rwebdriver-19a36e9/DESCRIPTION' ...
  5. -  preparing 'Rwebdriver':
  6. √  checking DESCRIPTION meta-information ...
  7. -  checking for LF line-endings in source and make files and shell scripts (420ms)
  8. -  checking for empty or unneeded directories
  9. -  building 'Rwebdriver_0.1.tar.gz'
  10.    
  11. * installing *source* package 'Rwebdriver' ...
  12. ** R
  13. ** byte-compile and prepare package for lazy loading
  14. ** help
  15. *** installing help indices
  16.   converting help for package 'Rwebdriver'
  17.     finding HTML links ... 好了
  18.     active_sessions                         html  
  19.     element_clear                           html  
  20.     element_click                           html  
  21.     element_css_find                        html  
  22.     element_ptext_find                      html  
  23.     element_xpath_find                      html  
  24.     get.url                                 html  
  25.     get.window_position                     html  
  26.     get.window_size                         html  
  27.     implicit_wait                           html  
  28.     keys                                    html  
  29.     liv                                     html  
  30.     page_back                               html  
  31.     page_forward                            html  
  32.     page_refresh                            html  
  33.     page_source                             html  
  34.     page_title                              html  
  35.     post.url                                html  
  36.     post.window_position                    html  
  37.     post.window_size                        html  
  38.     quit_session                            html  
  39.     start_session                           html  
  40.     status                                  html  
  41.     window_change                           html  
  42.     window_close                            html  
  43.     window_handle                           html  
  44.     window_handles                          html  
  45.     window_max                              html  
  46. ** building package indices
  47. ** testing if installed package can be loaded
  48. * DONE (Rwebdriver)
  49. In R CMD INSTALL
  50. Warning messages:
  51. 1: In untar2(tarfile, files, list, exdir) :
  52.   skipping pax global extended headers
  53. 2: In untar2(tarfile, files, list, exdir) :
  54.   skipping pax global extended headers
复制代码
说是安装Rtools,但是这个Rtools对于最新版的R不能用,且Rtools是.exe文件
这个Rtools.exe是干嘛用的?
谢谢

使用道具

报纸
ishenweiyan 发表于 2018-12-18 08:36:06 |只看作者 |坛友微信交流群
Rtools 提供了一个适用于 R 的 Windows 平台工具链,它主要包括 GNU make,GNU gcc 和 UNIX-ish 平台上常用的其他实用程序。谷歌一下 Rtools 怎么安装就可以,有很多教程。

使用道具

地板
拂去尘缘 发表于 2018-12-21 13:44:37 |只看作者 |坛友微信交流群
安装好了,
  1. > library("Rwebdriver")
  2. 载入需要的程辑包:RCurl
  3. 载入需要的程辑包:bitops
  4. 载入需要的程辑包:RJSONIO
复制代码

感受就是,中间需要加载很多package

使用道具

ishenweiyan 发表于 2018-12-14 08:45
尝试一下使用下面的安装方法:
你好,我按照你的代码,输入以后,出现了以下显示
Downloading GitHub repo crubba/Rwebdriver@master
Error in process_initialize(self, private, command, args, stdin, stdout,  :
  Command not found

这个command是什么意思呢?要怎么解决呢?

使用道具

8
ishenweiyan 发表于 2019-5-29 08:53:17 |只看作者 |坛友微信交流群
只是你的过客 发表于 2019-5-23 11:48
你好,我按照你的代码,输入以后,出现了以下显示
Downloading GitHub repo crubba/Rwebdriver@master
...
请问一下,你是在 windows 还是 linux 下安装这个 R 包?最好能把完整的报错信息贴上来。

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 09:30