jwijffels / RMETAR

A METAR decoder for R users, connecting to mdsplib (METAR Decoder Software Package Library - http://mdsplib.sourceforge.net/)
4 stars 4 forks source link

README installation instructions produce 'invalid get repo specification' error #18

Open mpjashby opened 4 years ago

mpjashby commented 4 years ago

The installation instructions in the package README:

library(devtools)
install_github("RMETAR", "jwijffels", subdir="/pkg")

produce the error:

Error in parse_repo_spec(repo) : Invalid git repo specification: 'RMETAR'

The same error occurs with the equivalent function from the remotes package that replaced devtools, i.e. when using remotes::install_github() in place of devtools::install_github().

Might it be useful to change the code in these instructions to something similar to the following?

install.packages("remotes")
remotes::install_github("jwijffels/RMETAR")
jwijffels commented 4 years ago

Sure! That needs to be updated.

vvxin commented 4 years ago

same error, but failed to use install_github("jwijffels/RMETAR")

`Downloading GitHub repo jwijffels/RMETAR@master ✓ checking for file ‘/private/var/folders/mn/9vkph_cs2db1dp72wx_t80r40000gn/T/Rtmpm01CqK/remotes7886bb17001/jwijffels-RMETAR-ba2bd1b/DESCRIPTION’ (780ms) ─ preparing ‘RMETAR’: ✓ checking DESCRIPTION meta-information ... ─ cleaning src ─ checking for LF line-endings in source and make files and shell scripts ─ checking for empty or unneeded directories ─ building ‘RMETAR_1.0.tar.gz’

jwijffels commented 4 years ago

@andrie Are you working still on this?

andrie commented 4 years ago

I haven't worked on this for a while, but IIRC the dev branch can be merged to master.

jwijffels commented 4 years ago

@vvxin Can you install from the dev branch https://github.com/jwijffels/RMETAR/tree/dev

vvxin commented 4 years ago

Do you mean remotes::install_github("jwijffels/RMETAR/tree/dev") ? doesn't work

Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`jwijffels`) and repo name (`RMETAR`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.

But remotes::install_github("jwijffels/RMETAR") works on my other computer! Maybe R version problem? Now I'm at R 3.6 instead of 4.

Thanks anyway!

andrie commented 4 years ago

To install from a different branch, e.g. dev, try:

remotes::install_github("jwijffels/RMETAR@dev")