Comments (5)
@bgruening any idea on this? We, in fact @Marie59 ;) , are working on a R package with a dependent R package who is archived.... Marie is hesitating between 1/ waiting that the appropriate version is on the CRAN 2/ use an old version 3/ make the conda recipe "by hand"
from conda_r_skeleton_helper.
why have you closed that?
from conda_r_skeleton_helper.
This script here just uses the conda skeleton
tool and cleans up a bit of mess. https://github.com/bgruening/conda_r_skeleton_helper/blob/master/run.py#L88
Conda skeleton has those options:
bag@bag:~$ conda skeleton cran --help
usage: conda-skeleton cran [-h] [--output-dir OUTPUT_DIR] [--output-suffix OUTPUT_SUFFIX] [--add-maintainer ADD_MAINTAINER] [--version VERSION] [--git-tag GIT_TAG] [--all-urls] [--cran-url CRAN_URL]
[--r-interp R_INTERP] [--use-binaries-ver USE_BINARIES_VER] [--use-when-no-binary {src,old,src-old,old-src,error}] [--use-noarch-generic] [--use-rtools-win] [--recursive]
[--no-recursive] [--no-archive] [--allow-archived] [--version-compare] [--update-policy {error,skip-up-to-date,skip-existing,overwrite,merge-keep-build-num,merge-incr-build-num}]
[-m VARIANT_CONFIG_FILES] [--add-cross-r-base] [--no-comments]
packages [packages ...]
positional arguments:
packages CRAN packages to create recipe skeletons for.
optional arguments:
-h, --help Show this help message and exit.
--output-dir OUTPUT_DIR
Directory to write recipes to (default: .).
--output-suffix OUTPUT_SUFFIX
Suffix to add to recipe dir, can contain other dirs (eg: -feedstock/recipe). (default: )
--add-maintainer ADD_MAINTAINER
Add this github username as a maintainer if not already present. (default: None)
--version VERSION Version to use. Applies to all packages. (default: None)
--git-tag GIT_TAG Git tag to use for GitHub recipes. (default: None)
--all-urls Look at all URLs, not just source URLs. Use this if it can't find the right URL. (default: False)
--cran-url CRAN_URL URL to use for as source package repository (default: None)
--r-interp R_INTERP Declare R interpreter package (default: r-base)
--use-binaries-ver USE_BINARIES_VER
Repackage binaries from version provided by argument instead of building from source. (default: None)
--use-when-no-binary {src,old,src-old,old-src,error}
Sometimes binaries are not available at the correct version for a given platform (macOS). You can use this flag to specify what fallback to take, either compiling from source or using
an older binary or trying one then the other. (default: src)
--use-noarch-generic Mark packages that do not need compilation as `noarch: generic` (default: False)
--use-rtools-win Use Rtools when building from source on Windows (default: False)
--recursive Create recipes for dependencies if they do not already exist. (default: False)
--no-recursive Don't create recipes for dependencies if they do not already exist. (default: True)
--no-archive Don't include an Archive download url. (default: True)
--allow-archived If the package has been archived, download the latest version. (default: False)
--version-compare Compare the package version of the recipe with the one available on CRAN. Exits 1 if a newer version is available and 0 otherwise. (default: False)
--update-policy {error,skip-up-to-date,skip-existing,overwrite,merge-keep-build-num,merge-incr-build-num}
Dictates what to do when existing packages are encountered in the output directory (set by --output-dir). In the present implementation, the merge options avoid overwriting bld.bat and
build.sh and only manage copying across patches, and the `build/{number,script_env}` fields. When the version changes, both merge options reset `build/number` to 0. When the version
does not change they either keep the old `build/number` or else increase it by one. (default: error)
-m VARIANT_CONFIG_FILES, --variant-config-files VARIANT_CONFIG_FILES
Variant config file to add. These yaml files can contain keys such as `cran_mirror`. Only one can be provided here. (default: None)
--add-cross-r-base Add cross-r-base to build requirements for cross compiling (default: False)
--no-comments Do not include instructional comments in recipe files (default: False)
So I assume if you change the code that I linked above and use --cran-url
to point to the archive URL, that might work?
from conda_r_skeleton_helper.
Hi @bgruening ! Happy to finally work a bit with you ! We closed conda-forge/staged-recipes#18967 because I did 3 other seperate PR that worked and the 3 packages are now available on conda.
Thanks a lot ! I will try what you're suggesting for the conda recipe !
Cheers !
from conda_r_skeleton_helper.
I think this can be closed now that PR #57 added the flag --allow-archived
from conda_r_skeleton_helper.
Related Issues (20)
- Don't remove `merge_build_host`
- Add sed, coreutils in meta.yaml when make is present HOT 2
- [win] license file for GPL-(2/3) does not exist HOT 5
- r-base minimum version should be parsed from CRAN HOT 2
- The DESCRIPTION text gets removed from the recipes. HOT 5
- noarch packages fail the staged-recipes linter HOT 4
- R packages on Github HOT 9
- Drop binary relocating code HOT 3
- build.sh fails when using a new version of conda skeleton
- Apache License fails linter HOT 4
- recipe generates a conda-forge-linter warning HOT 2
- Add integration tests HOT 3
- packages.txt HOT 3
- GLP-2: License is not an SPDX identifier HOT 20
- Helper ask to install conda-build HOT 6
- GPL-3 is not a valid license? HOT 2
- Monitoring grayskull support for R package recipes
- Windows build fails for r-bipartitemodularitymaximization HOT 5
- All run scripts fail on conda version 24 HOT 4
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 conda_r_skeleton_helper.