Comments (12)
I have an early version of this I've been using locally but it needs clean up and testing before adding a version here.
from minicran.
@andrie Is this covered by existing functionality per #58 and #59? I'll hold off prepping my version of this for now until I either hear back from you or have a chance to test this myself.
from minicran.
nevermind, I read that wrong. those two issues are about installing FROM a local repo not adding a local package to one.
from minicran.
Started new branch 23-addLocalPackages
which incorporates the 24-addPackages
branch. This new branch is still a work in progress and I haven't yet done much testing.
the aim is to provide a function that takes a pre-built local package and adds it to the miniCRAN repo. The currently unimplemented build = TRUE
argument would allow a package to be built from the local source code (i.e., after pulling from a github repo as in #50).
I hope to return to this soon
from minicran.
Came across this, as I need the ability to push in-house built packages to the R Server, and this seems to be the path. Is this functionality yet present, or is there another way to add locally-built packages to the miniCRAN repo?
from minicran.
@mpettis @andrie I've fixed up the version I had started working on in the 23-addLocalPackages
branch, and added unit tests (8cd07b0).
The new function addLocalPackage()
looks for a pre-built package in another (non-miniCRAN-repo) location and adds it to the miniCRAN repo.
I want to test this a bit more in my work environment (rather than just at home) to make sure the improved version is working in my real use case, but please take it for a spin!
from minicran.
Great, exaclty what I was looking for. It worked fine on my MacOS Sierra. Thanks a lot @achubaty. Any idea when this is merged into master? I think it really adds a lot of value to miniCRAN
. Maybe just one thing I that could be stated more clearly in the help file: The argument pkgPath
does not contain the package directory itself, i.e. pkgPath
and pkgs
make up the package directory together. Maybe that is obvious but I did not get it in the first place.
from minicran.
I just created a minimal example how it worked with one of my packages:
https://github.com/lorenzwalthert/localCran
from minicran.
@lorenzwalthert no idea when it will be merged -- that will be up to @andrie and his schedule.
good point about pkgPath
. I've created a new issue (#85).
from minicran.
cool. Well with regard to the merge, why don't you create a pull request after rebasing the branch upon master?
from minicran.
After addLocalPackage()
is added to master, is there an estimate/plan on when the new updates will be available on CRAN?
from minicran.
I did some fixing up and have now merged this feature branch into dev (93246da). I'll defer to @andrie as gatekeeper to merge into master and submit to CRAN. Thus, @jgbradley1, I don't have a timeframe for you, but I see there are a few other small issues that should probably be resolved for the next CRAN version.
For now, you can use devtools::install_github("RevolutionAnalytics/miniCRAN@dev)
.
from minicran.
Related Issues (20)
- Updating the PACKAGES file sometimes gets stuck HOT 2
- Failure with old version of assertthat HOT 1
- building a miniCRAN 3.4 using R 3.6 HOT 7
- Support multiple versions of a package HOT 4
- Suggestion: Hide dependencies for some R packages in `plot.pkgDepGraph()` HOT 2
- Use github actions instead of Travis
- Installation on R < 4.0 HOT 2
- Remove dependency on curl
- Incorrect identification of packages with checkVersions() HOT 2
- Vignette for using BioConductor needs update. HOT 3
- addLocalPackage() gives error HOT 2
- Support mac.binary.big-sur-arm64 HOT 5
- Add packages to repository from GitHub (or other remotes) HOT 1
- Rename master branch to main
- Fix R-CMD-check failures
- Installation fails due to lazy load in R 4.1.3 HOT 3
- UpdatePackages function with UNC paths HOT 1
- Don't redownload packages that are already on the repo HOT 2
- Controling arg `recursive` passed to tools::package_dependencies() HOT 1
- Why I cannot install my own package I've created? HOT 1
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 minicran.