1
votes

I am trying to install this package to use with R in conda:

Hotelling

However, I get this error message with the conda install:

$ conda install Hotelling Fetching package metadata .................

PackageNotFoundError: Packages missing in current channels:

  • hotelling

We have searched for the packages in the following channels:

1
"hotelling" or "Hotelling"?rawr
Neither work. I think I need to specify another source, but what source should I specify? Is that just a URL to the hotelling package? How do I do that with conda? conda docs are unclear.hannah
did you try conda install -c r r-Hotelling? Are you using jupyter, you can just install it from thererawr
Just tried that command, but no luck.hannah
what about the answer hererawr

1 Answers

2
votes

It isn't available on any anaconda repos. You can add it to a private repo and then install it using conda. Start an anaconda account and ensure you root-environment's conda/python is up to date (conda update conda && conda update python)

In some directory and in your root environment, use

conda skeleton cran Hotelling

That will make a skeleton for building the package based on the CRAN release. Then build that (note the anaconda package is all lower-case despite the CRAN name being Title case):

conda build --R=<whatever_your_version_of_r_is> r-hotelling

Hopefully that will build. If it's succesful it should give you a message that tells you how to upload to your account on anaconda-cloud

anaconda upload <path_to_your_built_r-hotelling> -u <your_account_name>

Then install it:

conda install -c <your_account_name> r-hotelling