edwardlavender / flapper

R Package: Routines for the analysis of passive acoustic telemetry data (Lavender et al., 2023).
https://edwardlavender.github.io/flapper/
4 stars 0 forks source link

Flapper won't install #1

Closed benjaminhlina closed 2 years ago

benjaminhlina commented 2 years ago

Hi Edward,

A colleague recently shared your package with me which looks impressive! However, I tried to install it today and it wouldn't install. Instead it produced the following error message. They also couldn't get it to install. Not sure as to why it's erroring upon installation.

devtools::install_github("edwardlavender/flapper", dependencies = TRUE, build_vignettes = TRUE)
Downloading GitHub repo edwardlavender/flapper@HEAD
Error: Failed to install 'flapper' from GitHub:
  Unknown remote type: github
  Invalid git repo specification: 'edwardlavender/prettyGraphics/'

I was able to get the following installed and previously have {glatos} installed but not {flapper}.

devtools::install_github("edwardlavender/prettyGraphics") # required
devtools::install_github("edwardlavender/Tools4ETS")      # required
devtools::install_github("adamlilith/fasterRaster")       # suggested

Current session info as well:

- Session info -----------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value
 version  R version 4.1.3 (2022-03-10)
 os       Windows 10 x64 (build 19044)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  English_United States.1252
 ctype    English_United States.1252
 tz       America/New_York
 date     2022-06-13
 rstudio  2022.02.3+492 Prairie Trillium (desktop)
 pandoc   2.7.2 @ C:\\PROGRA~1\\Pandoc\\pandoc.exe

- Packages ---------------------------------------------------------------------------------------------------------------------------------------------------------------
 package     * version    date (UTC) lib source
 bit           4.0.4      2020-08-04 [1] CRAN (R 4.1.0)
 bit64         4.0.5      2020-08-30 [1] CRAN (R 4.1.0)
 blob          1.2.3      2022-04-10 [1] CRAN (R 4.1.3)
 brio          1.1.3      2021-11-30 [1] CRAN (R 4.1.3)
 cachem        1.0.6      2021-08-19 [1] CRAN (R 4.1.1)
 callr         3.7.0      2021-04-20 [1] CRAN (R 4.1.0)
 cli           3.3.0      2022-04-25 [1] CRAN (R 4.1.3)
 crancache     0.0.0.9001 2021-10-28 [1] Github (r-lib/crancache@7ea4e47)
 cranlike      1.0.2      2018-11-26 [1] CRAN (R 4.1.1)
 crayon        1.5.1      2022-03-26 [1] CRAN (R 4.1.3)
 curl          4.3.2      2021-06-23 [1] CRAN (R 4.1.0)
 DBI           1.1.2      2021-12-20 [1] CRAN (R 4.1.2)
 debugme       1.1.0      2017-10-22 [1] CRAN (R 4.1.1)
 desc          1.4.1      2022-03-06 [1] CRAN (R 4.1.3)
 devtools      2.4.3      2021-11-30 [1] CRAN (R 4.1.3)
 digest        0.6.29     2021-12-01 [1] CRAN (R 4.1.2)
 ellipsis      0.3.2      2021-04-29 [1] CRAN (R 4.1.0)
 fansi         1.0.3      2022-03-24 [1] CRAN (R 4.1.3)
 fastmap       1.1.0      2021-01-25 [1] CRAN (R 4.1.0)
 fs            1.5.2      2021-12-08 [1] CRAN (R 4.1.2)
 glue          1.6.2      2022-02-24 [1] CRAN (R 4.1.3)
 lifecycle     1.0.1      2021-09-24 [1] CRAN (R 4.1.1)
 magrittr      2.0.3      2022-03-30 [1] CRAN (R 4.1.3)
 memoise       2.0.1      2021-11-26 [1] CRAN (R 4.1.2)
 parsedate     1.3.0      2022-02-13 [1] CRAN (R 4.1.3)
 pillar        1.7.0      2022-02-01 [1] CRAN (R 4.1.3)
 pkgbuild      1.3.1      2021-12-20 [1] CRAN (R 4.1.3)
 pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.1.0)
 pkgload       1.2.4      2021-11-30 [1] CRAN (R 4.1.3)
 prettyunits   1.1.1      2020-01-24 [1] CRAN (R 4.1.0)
 processx      3.6.0      2022-06-10 [1] CRAN (R 4.1.3)
 ps            1.7.0      2022-04-23 [1] CRAN (R 4.1.3)
 purrr         0.3.4      2020-04-17 [1] CRAN (R 4.1.0)
 R6            2.5.1      2021-08-19 [1] CRAN (R 4.1.1)
 rappdirs      0.3.3      2021-01-31 [1] CRAN (R 4.1.0)
 Rcpp          1.0.8.3    2022-03-17 [1] CRAN (R 4.1.3)
 rematch2      2.1.2      2020-05-01 [1] CRAN (R 4.1.0)
 remotes       2.4.2      2021-11-30 [1] CRAN (R 4.1.3)
 rlang         1.0.2      2022-03-04 [1] CRAN (R 4.1.3)
 rprojroot     2.0.3      2022-04-02 [1] CRAN (R 4.1.3)
 RSQLite       2.2.14     2022-05-07 [1] CRAN (R 4.1.3)
 rstudioapi    0.13       2020-11-12 [1] CRAN (R 4.1.0)
 sessioninfo   1.2.2      2021-12-06 [1] CRAN (R 4.1.3)
 testthat      3.1.4      2022-04-26 [1] CRAN (R 4.1.3)
 tibble        3.1.7      2022-05-03 [1] CRAN (R 4.1.3)
 usethis       2.1.6      2022-05-25 [1] CRAN (R 4.1.3)
 utf8          1.2.2      2021-07-24 [1] CRAN (R 4.1.0)
 vctrs         0.4.1      2022-04-13 [1] CRAN (R 4.1.3)
 withr         2.5.0      2022-03-03 [1] CRAN (R 4.1.3)

 [1] C:/Users/benja/Documents/R/win-library/4.1
 [2] C:/Program Files/R/R-4.1.3/library

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
edwardlavender commented 2 years ago

Hi,

Thanks a lot for the issue and many apologies for the very delayed response--for some reason I did not receive this issue as an email notification. I think the issue is coming from the trailing '/' on 'edwardlavender/prettyGraphics/' (and other remotes) and I have removed this in the package description. If you run the following, the package should now install:

devtools::install_github("edwardlavender/flapper")

As a backup solution, if you have already installed prettyGraphics, Tools4ETS, glatos and fasterRaster, you can install the remaining dependencies/suggested packages from CRAN using install.packages() and then install flapper without checking the dependencies as follows:

## install CRAN dependencies
install.packages(c("magrittr", "dplyr", "rlang", "lubridate", "purrr",
                   "data.table", "Matrix", "pbapply",
                   "raster", "rgeos", "geosphere", "Orcs", "cppRouting",
                   "gdistance", "sp", "adehabitatHR", "fields"))

## install suggests
install.packages(c("plyr", "tidyr", "stringr",
                   "sf", "sfheaders",
                   "spatialEco",
                   "plotly", "animation", "scales", "viridis",
                   "circular",
                   "httr", "jsonlite",
                   "rbenchmark",
                   "rmarkdown", "knitr"))

## install flapper with dependencies = FALSE
devtools::install_github("edwardlavender/flapper", dependencies = FALSE)

Please let me know if that fixes the issue. If not, I hope to rebuild the package using the latest version of R in the next couple of weeks, which should solve any remaining issues.

Thanks again for your interest & I hope that helps.

benjaminhlina commented 2 years ago

@edwardlavender thanks for looking into this. Was able to get flapper to install, now going to play around with what you built!

edwardlavender commented 2 years ago

Great - good luck! The package still needs a lot of work (improved documentation, bug fixes, testing & optimisation) but hope it is useful to you.