Skip to content

Chromote not working on windows 10 #77

Closed

Description

@dickoa

Hi @schloerke,

I hope all is good. Thanks for your work on this package.
I don't know what changed but I now have an issue when I do this on Windows

library(chromote)
Sys.getenv("CHROMOTE_CHROME")
## [1] "C:\\\\Program Files\\\\BraveSoftware\\\\Brave-Browser\\\\Application\\\\brave.exe"

b <- ChromoteSession$new()
b$view()
## [1] 127
## Warning message:
## In system(paste0("\"", browser, "\" ", if (encodeIfNeeded) URLencode(url) else url),  :
##   '""C:\\Program' not found

I was working fine couple of month ago. I only have this issue on windows, it's working well on Linux.
I suspect that it's related to the path and I think it's related to this

browseURL(url, shQuote(browser$get_path()))

Using just browseURL works, but since get_path is private, I can't use it for my test.

Can someone else can reproduce this error?

Thanks for the support,
Ahmadou

Activity

  1. schloerke commented on Mar 11, 2022

    @schloerke
    Collaborator

    TIL browseURL() quotes the browser path if provided!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions