-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to install local source packages #34
Comments
You must have read my mind! @willbradley is working on a way to support older |
No, I really need the more general "local" packages installation. The older versions of CRAN packages would be just a side-bonus. Here is what I've ended up with ATM:
And I keep the local packages as sub-folders in the "app/local" folder (unpacked - had some issues with ".tar.gz" for my package). |
Would you like us to support this with something like:
We can have that information persist into package_manager.R and call ensure_local as you laid out above. |
That would be perfect. NB: would be nice to support usual versioning relations e.g. ">= 1.2", "== 1.2", like this: Thank you - I appreciate your responsiveness and openness. |
@trybik here is what we have in dev:
I'm not sure we want to force users to add <, >, <=, and/or == because they are effectively the same or incorrect relative to != a given version.
Do you have a good use case for supporting these options? Otherwise, I think |
I don't really follow, incl. what is Reg. the exact/min/max versions, there are two elements to consider here, which reg. not only local packages, but also : 1. optional versions specification (think pip requirements file), 2. implementation with actual equality and inequality operators using I think supporting "==", ">=" operators is standard across many tools. One assumes backward compatibility and does not need to know which version is actually installed. Note: "<=" could be useful to specify version at which package lost its required backward compatibility, but in practice, e.g. in pip requirements files, one uses then just "==" with the last version that supports used API. In my case, an API function required for the app appeared only in version "1.2" of the package, which is ATM only available directly from the author, whereas current CRAN version is "1.1". In turn, specifying either "==1.2" or ">=1.2" would make me happy. |
Closer example of versioning specification: R DESCRIPTION file, see "Versioning" section. |
Hadley references are pretty hard to contend with @trybik. Well played sir. You'll get your |
IMVHO it would be nice to have on top of
pkgs
andremotes
parameters ofcreate_app
, an additional parameter, saysources
, which would execute:This would allow to easily add package dependencies outside of the CRAN or GitHub, or to install older versions of CRAN packages.
The text was updated successfully, but these errors were encountered: