metno / esd

An R-package designed for climate and weather data analysis, empirical-statistical downscaling, and visualisation.
86 stars 30 forks source link

install problem #260

Closed fipoucat closed 2 years ago

fipoucat commented 3 years ago

I am trying to install from github repos but getting error:

install_github('metno/esd') Downloading GitHub repo metno/esd@HEAD Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/metno/esd/tarball/HEAD' failed

what is causing this? and any solution?

abdelkaderm commented 3 years ago

Hi

Which OS are you using?

Bests

On Thu, 9 Sep 2021 at 18:26, fipoucat @.***> wrote:

I am trying to install from github repos but getting error:

install_github('metno/esd') Downloading GitHub repo @.*** Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/metno/esd/tarball/HEAD' failed

what is causing this? and any solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/metno/esd/issues/260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSMFWOZTHK3ESG3YUC7Q2LUBDN3TANCNFSM5DXQORVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Dr. Abdelkader Mezghani

Research Scientist Division for Model and Climate analysis Research and Development Department The Norwegian Meteorological Institute P.O. Box 43 Blindern N-0313 Oslo, Norway Office +47 22963399

fipoucat commented 3 years ago

mac OSX

On Thu, Sep 9, 2021 at 8:10 PM abdelkaderm @.***> wrote:

Hi

Which OS are you using?

Bests

On Thu, 9 Sep 2021 at 18:26, fipoucat @.***> wrote:

I am trying to install from github repos but getting error:

install_github('metno/esd') Downloading GitHub repo @.*** Error in utils::download.file(url, path, method = method, quiet = quiet, : download from 'https://api.github.com/repos/metno/esd/tarball/HEAD' failed

what is causing this? and any solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/metno/esd/issues/260, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABSMFWOZTHK3ESG3YUC7Q2LUBDN3TANCNFSM5DXQORVA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

-- Dr. Abdelkader Mezghani

Research Scientist Division for Model and Climate analysis Research and Development Department The Norwegian Meteorological Institute P.O. Box 43 Blindern N-0313 Oslo, Norway Office +47 22963399

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/metno/esd/issues/260#issuecomment-916401809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXY6LJBQ3YACQQKKFJAFVLUBEIB3ANCNFSM5DXQORVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

abdelkaderm commented 3 years ago

Hi, this is wired. Here is the outcome of the command on my computer (Linux) which works perfectly.

> install_github('metno/esd')
Downloading GitHub repo metno/esd@HEAD
✔  checking for file ‘/tmp/RtmpgEb0gC/remotes7cf2478c8b8e/metno-esd-35e3c8d/DESCRIPTION’ ...
─  preparing ‘esd’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
     NB: this package now depends on R (>= 3.5.0)
     WARNING: Added dependency on R >= 3.5.0 because serialized objects in  serialize/load version 3 cannot be read in older versions of R.  File(s) containing such objects: ‘esd/data/global.t2m.cmip6.rda’
─  building ‘esd_1.9.87.tar.gz’

Installing package into ‘/username/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package ‘esd’ ...
** using staged installation
** R
** data
** demo
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (esd)
> 
abdelkaderm commented 3 years ago

In case you are still having troubles, you can try one of the other installation methods. Have a look here :-)

fipoucat commented 3 years ago

I finally downloaded the master.zip file and use a local install.

Thanks