ansible-r icon indicating copy to clipboard operation
ansible-r copied to clipboard

Support install_github from devtools/remotes?

Open davidedelvento opened this issue 7 years ago • 6 comments

It would be great if this role would support install_github (and related) from devtools or from remotes (which should be the same...)

Besides the convenience, some projects (e.g. R for jupyter notebooks) can only be installed this way.

Any plan or interest on supporting devtools/remotes?

davidedelvento avatar Dec 04 '17 18:12 davidedelvento

Installation of packages from github.com is already supported, but I'm definitely interested in improving this and making more remotes available.

tersmitten avatar Dec 05 '17 09:12 tersmitten

Thanks for your answer. Can you please elaborate some or point me to the documentation on how to install from github in the current version?

davidedelvento avatar Dec 05 '17 12:12 davidedelvento

There's an example in the Readme. You need to specify an organization/repository and a type (github)

tersmitten avatar Dec 05 '17 18:12 tersmitten

I'd be glad to work on improving it as well since I submitted the original PR. I think adding additional remotes is a great idea. See the README here and you'll find an example.

brooklynbagel avatar Dec 05 '17 20:12 brooklynbagel

Also have a look at the R-install-requirements script that is included in this role. We use this script to install requirements for shiny-apps (from a file)

tersmitten avatar Dec 06 '17 09:12 tersmitten

Something like this would be nice.

    r_packages:
      - name: dplyr
      - name: mypersonal/project
        type: customer
        uri: [email protected]
        credentials:
          pub_key: ~/.ssh/id_rsa.pub
          private_key: ~/.ssh/id_rsa

I'm not suggesting that this syntax is right, but something along these lines.

maxolasersquad avatar Jan 24 '18 23:01 maxolasersquad