简体   繁体   中英

Error in loadNamespace(name) : there is no package called ‘Rcompression’

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()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM