GithubHelp home page GithubHelp logo

Comments (5)

eddelbuettel avatar eddelbuettel commented on August 20, 2024

If I follow, then what you describe seems orthogonal to whether your repo is public or private. -- drat just needs write access somewhere to have R write an updated PACKAGES file. That can be ~/git/someDir but drat does not what the remote to repo 'someDir', nor does drat need to know.

You can also run drat just find without git -- on the reading side R just uses installed.packages() over http, or via a file:/// URL.

I hope I am making sense here to you, if not may see different drat vignettes and/or refine the question here.

from drat.

eddelbuettel avatar eddelbuettel commented on August 20, 2024

In other words, if hosted remotely, this turns into standard 'how to I protect a website' issue and you'd have to tell R how to run update.packages(), install.packages(), ... which may well work via curl and tokens.

drat just creates the repo. The transport layer is all you. Makes sense?

from drat.

daattali avatar daattali commented on August 20, 2024

Yep makes sense. I haven't actually tried drat yet, just read the vignettes and was wondering if there are existing use cases of people placing their repos behind password protection.

If I host on a private server, inserting the package is easy because I personally have access to the web server so I can run the commands without problem. But for other people to run the addRepo() command, I'm not sure how to use the URL to tell drat to read from a server that needs user/pw authentication.

I understand this might be outside the scope of drat though. Or maybe it'll be as easy as just specifying the user:pw in the url.

from drat.

eddelbuettel avatar eddelbuettel commented on August 20, 2024

You have to take each command and operation at a time. addRepo() is just a shorthand for setting options("repos"). And we're back to square one: you have a transport problem.

You can tell R to run all its download operations via an external program like curl (the binary). That way it is back to you to deal with whatever armada of proxies, firewall, bonfires, and whatnots you have between your machine and the sacred remote repo.

from drat.

daattali avatar daattali commented on August 20, 2024

from drat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.