r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
334 stars 153 forks source link

install_github is not working #320

Closed mialj1 closed 5 years ago

mialj1 commented 5 years ago

Hi, I am having issues in installing GitHub developer packages, especially when using install_gihub it gives this error _Downloading GitHub repo cbail/textnets@master Error in if (!isdir(path)) { : missing value where TRUE/FALSE needed

I want to install "cbail/textnets" package but every time gives the same error I have tried both on rstudio and rgui.

tbates commented 5 years ago

working fine here under packageVersion("devtools") ‘2.0.1.9000’, including for this textnets package...

install_github("cbail/textnets")
Downloading GitHub repo cbail/textnets@master
broom       (NA     -> 0.5.1     ) [CRAN]
data.table  (1.11.4 -> 1.12.0    ) [CRAN]
farver      (NA     -> 1.1.0     ) [CRAN]
generics    (NA     -> 0.0.2     ) [CRAN]
ggforce     (NA     -> 0.1.3     ) [CRAN]
ggraph      (NA     -> 1.0.2     ) [CRAN]
ggrepel     (NA     -> 0.8.0     ) [CRAN]
hunspell    (2.9    -> 3.0       ) [CRAN]
ISOcodes    (NA     -> 2018.06.29) [CRAN]
janeaustenr (NA     -> 0.1.5     ) [CRAN]
networkD3   (NA     -> 0.4       ) [CRAN]
SnowballC   (NA     -> 0.6.0     ) [CRAN]
stopwords   (NA     -> 0.9.0     ) [CRAN]
tidytext    (NA     -> 0.2.0     ) [CRAN]
tokenizers  (NA     -> 0.2.1     ) [CRAN]
tweenr      (NA     -> 1.0.1     ) [CRAN]
udpipe      (NA     -> 0.8       ) [CRAN]
units       (NA     -> 0.6-2     ) [CRAN]
Installing 18 packages: broom, data.table, farver, generics, ggforce, ggraph, ggrepel, hunspell, ISOcodes, janeaustenr, networkD3, SnowballC, stopwords, tidytext, tokenizers, tweenr, udpipe, units
trying URL 'https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.5/broom_0.5.1.tgz'
Content type 'application/x-gzip' length 1992593 bytes (1.9 MB)
==================================================
downloaded 1.9 MB

... etc.

jimhester commented 5 years ago

@mialj1 please try using the development version of the remotes package and see if it resolves this issue.

devtools::install_dev("remotes")
alexandrosgryparis commented 5 years ago

Hi all,

I have the same problem mentioned above by @mialj1. I try to install the "tobiasmuetze/ThreeArmedTrials" package in R, and I get the following error message:

>devtools::install_github("tobiasmuetze/ThreeArmedTrials") Downloading GitHub repo tobiasmuetze/ThreeArmedTrials@master Error in if (!is_dir(path)) { : missing value where TRUE/FALSE needed

I tried githubinstall, and it didn't work either:

> githubinstall("ThreeArmedTrials") Suggestion: tobiasmuetze/ThreeArmedTrials Do you want to install the package (Y/n)? Y Installing "ThreeArmedTrials" package from GitHub, but already installed from CRAN. This package is already installed. Are you sure you want to overwrite it (Y/n)? Y Downloading GitHub repo tobiasmuetze/ThreeArmedTrials@master Error in if (!is_dir(path)) { : missing value where TRUE/FALSE needed In addition: Warning message: In fread(download_url, sep = "\t", header = FALSE, stringsAsFactors = FALSE, : Found and resolved improper quoting out-of-sample. First healed line 4848: <<Puriney honfleuR

I tried the development version of the remotes package, and got the same issue as well:

> devtools::install_dev("remotes") Downloading GitHub repo r-lib/remotes@master Error in if (!is_dir(path)) { : missing value where TRUE/FALSE needed

Any suggestion will be greatly appreciated.

My session info: R version 3.5.2 (2018-12-20) -- "Eggshell Igloo" Platform: x86_64-w64-mingw32/x64 (64-bit)

locale: "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252"

attached base packages: ".GlobalEnv" "package:stats" "package:graphics" "package:grDevices" "package:utils" "package:datasets" "package:methods" "Autoloads" "package:base"

Thank you

alexvorobiev commented 5 years ago

I am getting this error with devtools v.2.0.2

jimhester commented 5 years ago

@alexvorobiev please make sure you have updated versions of both devtools and remotes

alexvorobiev commented 5 years ago

@jimhester that didn't help. In my case the issue was with curl redirects. See my workaround here https://github.com/r-lib/remotes/issues/350#issuecomment-489787524