Skip to content

Can not $view() on mac #79

Closed
Closed

Description

@schloerke

@DivadNojnarg commented on b605b46#commitcomment-68872485

@schloerke : this last update fails on my mac locally sh: /Applications/Google: No such file or directory.

Activity

  1. schloerke commented on Mar 17, 2022

    @schloerke
    CollaboratorAuthor

    Related #73 - feature
    Related #78 - breakage

  2. schloerke commented on Mar 17, 2022

    @schloerke
    CollaboratorAuthor

    @DivadNojnarg , what is the print value for chromote::default_chromote_object()$get_browser()

    My value on macOS w/ R 4.0:

    <Chrome>
      Inherits from: <Browser>
      Public:
        clone: function (deep = FALSE)
        close: function ()
        get_host: function ()
        get_path: function ()
        get_port: function ()
        get_process: function ()
        initialize: function (path = find_chrome(), args = get_chrome_args())
        is_local: function ()
      Private:
        finalize: function (e)
        host: 127.0.0.1
        path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
        port: 52671
        process: process, R6
    
  3. DivadNojnarg commented on Mar 17, 2022

    @DivadNojnarg

    On the local mac, R 4.0:

    <Chrome>
      Inherits from: <Browser>
      Public:
        clone: function (deep = FALSE) 
        close: function () 
        get_host: function () 
        get_path: function () 
        get_port: function () 
        get_process: function () 
        initialize: function (path = find_chrome(), args = get_chrome_args()) 
        is_local: function () 
      Private:
        finalize: function (e) 
        host: 127.0.0.1
        path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
        port: 65008
        process: process, R6
    
  4. DivadNojnarg commented on Mar 17, 2022

    @DivadNojnarg

    I can workaround if I install chromium and set:

    Sys.setenv(CHROMOTE_CHROME = "/usr/local/bin/chromium")
    
    <Chrome>
      Inherits from: <Browser>
      Public:
        clone: function (deep = FALSE) 
        close: function () 
        get_host: function () 
        get_path: function () 
        get_port: function () 
        get_process: function () 
        initialize: function (path = find_chrome(), args = get_chrome_args()) 
        is_local: function () 
      Private:
        finalize: function (e) 
        host: 127.0.0.1
        path: /usr/local/bin/chromium
        port: 49239
        process: process, R6
    
  5. schloerke commented on Mar 17, 2022

    @schloerke
    CollaboratorAuthor

    Looking at base::browseURL() again, I don't know how it's working on my machine as our paths are the same and are not being quoted. So weird! 🤯

    When I originally was looking in #78, I was following url, not browser. I can see that browser is never quoted before being sent to system if not on a windows platform.

    😆 I'll make a PR to quote browser on non-Windows platforms.

  6. schloerke commented on Mar 17, 2022

    @schloerke
    CollaboratorAuthor

    ... turns out I didn't have the latest 🤦‍♂️ .

    With main, I could reprex and the bug fixed in #80

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