loadNamespace(name)中的错误:没有包叫“Rcompression” [英] Error in loadNamespace(name) : there is no package called ‘Rcompression’

查看:121
本文介绍了loadNamespace(name)中的错误:没有包叫“Rcompression”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一段来自RSelenium的代码。我想使用我自己的Firefox浏览器配置文件来浏览网站。



我试图运行:

  fprof<  -  getFirefoxProfile (C:/Users/Administrator/AppData/Roaming/Mozilla/Firefox/Profiles/x51kgfa5.default)
remDr< - remoteDriver(extraCapabilities = fprof)
remDr $ open()

不幸的是我收到了Rcompression错误。



试图找到一个Rcompression包,但没有任何运气。对于可能的解决方案的任何想法将不胜感激。

解决方案

如果您 useBase = TRUE

  fprof<  -  getFirefoxProfile(C:/ Users / Administrator / AppData / Roaming / Mozilla / Firefox / Profiles / x51kgfa5.default,useBase = TRUE)
remDr< - remoteDriver(extraCapabilities = fprof)
remDr $ open()


I am running a piece of code from RSelenium. I want to use my own Firefox browser profile to scrape websites.

I am trying to run:

fprof <- getFirefoxProfile("C:/Users/Administrator/AppData/Roaming/Mozilla/Firefox/Profiles/x51kgfa5.default")
remDr <- remoteDriver(extraCapabilities = fprof)
remDr$open()

Unfortunately I am getting the Rcompression error.

I have tried to locate an Rcompression package, but without any luck. Any thoughts on a possible solution would be greatly appreciated.

解决方案

You don't need the package if you useBase = TRUE:

fprof <- getFirefoxProfile("C:/Users/Administrator/AppData/Roaming/Mozilla/Firefox/Profiles/x51kgfa5.default", useBase=TRUE)
remDr <- remoteDriver(extraCapabilities = fprof)
remDr$open()

这篇关于loadNamespace(name)中的错误:没有包叫“Rcompression”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆