Discussion:
[conda] How to select a CRAN mirror in conda-build?
Marek Gierliński
2018-04-23 10:37:40 UTC
Permalink
I'm trying to install R package kableExtra in my environment:

conda skeleton cran kableextra
conda-build --R 3.4.2 r-kableextra

Every time I do this I get an error message:

Downloading
https://mran.microsoft.com/snapshot/2018-01-01/src/contrib/kableExtra_0.8.0.tar.gz
Error: HTTP 404 NOT FOUND for url
<https://mran.microsoft.com/snapshot/2018-01-01/src/contrib/kableExtra_0.8.0.tar.gz>

There is a cran_mirror variable in the r-kableextra/meta.yaml file and, in
this case, it defaults to https://mran.microsoft.com/snapshot/2018-01-01/.
Alas, the package is not found there.

I couldn't find any way of changing this variable via conda-build or conda
skeleton parameters, so I had to edit the meta.yaml file and manually
replaced {{ cran_mirror }} with https://cran.r-project.org. This solved the
problem.

How do I select CRAN mirror without editing the meta.yaml file?
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/3cee2b71-53b8-4ab8-af0c-05f17253efd1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Marek Gierliński
2018-04-23 10:51:14 UTC
Permalink
I believe I tried this, but the resulting meta.yaml file still contained
cran_mirror variable.

I will try the other method.

Thanks a lot!

Marek
An alternative is to pass --cran-url when you call conda skeleton cran,
e.g. with https://mran.microsoft.com/snapshot/2018-01-01/
We've switched to MRAN since it provides snapshotting which is a very
useful feature for reproducibility.
On Mon, Apr 23, 2018 at 11:37 AM, Marek Gierliński <
Post by Marek Gierliński
conda skeleton cran kableextra
conda-build --R 3.4.2 r-kableextra
Downloading
https://mran.microsoft.com/snapshot/2018-01-01/src/contrib/kableExtra_0.8.0.tar.gz
Error: HTTP 404 NOT FOUND for url <
https://mran.microsoft.com/snapshot/2018-01-01/src/contrib/kableExtra_0.8.0.tar.gz
There is a cran_mirror variable in the r-kableextra/meta.yaml file and,
in this case, it defaults to
https://mran.microsoft.com/snapshot/2018-01-01/. Alas, the package is
not found there.
I couldn't find any way of changing this variable via conda-build or conda
skeleton parameters, so I had to edit the meta.yaml file and manually
replaced {{ cran_mirror }} with https://cran.r-project.org. This solved
the problem.
How do I select CRAN mirror without editing the meta.yaml file?
--
You received this message because you are subscribed to the Google Groups
"conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/a/continuum.io/group/conda/
.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/conda/3cee2b71-53b8-4ab8-af0c-05f17253efd1%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/conda/3cee2b71-53b8-4ab8-af0c-05f17253efd1%40continuum.io?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/a/continuum.io/d/optout
.
--
Dr Marek Gierliński
The Data Analysis Group
The Barton Group
Computational Biology and GRE
School of Life Sciences
University of Dundee, Dundee, Scotland, UK.
Tel: +44 1382 386427
www.compbio.dundee.ac.uk/dag.html

--- Ceterum censeo stultitiam esse delendam ---
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/CAHyhd_erfZ2qQdncv%3DV59Si%2BArp64_JB7k1QPfx8a2BCY3wyCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Loading...