Comments (5)
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.
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.
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.
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.
from drat.
Related Issues (20)
- Add new draft vignette on 'step-by-step' demo of `drat` HOT 1
- Convert other vignettes to `minidown::water` HOT 1
- install.packages("drat") fails: `Error : object 'update_PACKAGES' is not exported by 'namespace:tools'` HOT 5
- Problem with link checker in r-devel HOT 3
- Nearing drat 0.2.0 release with main branch docs/ directory support HOT 1
- drat 0.2.0: breaking change if `dratBranch = "main"` HOT 8
- missing getPackageInfo in 0.2.0 HOT 7
- Importing and using large data R package HOT 2
- Insert binary packages to wrong repository on ARM M1 Mac HOT 25
- insertPackage is very slow when using networked windows devices HOT 7
- insertPackage is slow for cloud-based file shares HOT 3
- sorry HOT 1
- Can old package versions be removed from drat folder? HOT 6
- pruneRepo fails with for package type mac.binary.big-sur-arm64 HOT 1
- minor typo HOT 3
- Broken link in doc ? HOT 3
- Possible discrepancy between where drat and CRAN places binaries when .Platform$pkgType is "mac.binary.big-sur-x86_64" HOT 14
- drat 0.2.4 release HOT 1
- [windows] Create repository using local server HOT 8
- installing package p2data HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drat.