rfishbase
rfishbase copied to clipboard
Error: Can't join on 'Subfamily' x 'Subfamily' because of incompatible types (logical / character)
Hello,
Thank you for a great package. After applying the fix suggested in #216 (GH API credentials) I get the following error :
Error: Can't join on 'Subfamily' x 'Subfamily' because of incompatible types (logical / character)
Due to code compatibility I am unable to update the package at this time which is why I used the workaround you suggested.
─ Session info ────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.6.3 (2020-02-29)
os macOS Mojave 10.14.6
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_GB.UTF-8
ctype en_GB.UTF-8
tz Europe/London
date 2021-08-18
─ Packages ────────────────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.0)
backports 1.1.8 2020-06-17 [1] CRAN (R 3.6.2)
callr 3.4.3 2020-03-28 [1] CRAN (R 3.6.2)
cli 2.0.2 2020-02-28 [1] CRAN (R 3.6.0)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.0)
desc 1.2.0 2018-05-01 [1] CRAN (R 3.6.0)
devtools 2.3.1 2020-07-21 [1] CRAN (R 3.6.2)
digest 0.6.27 2020-10-24 [1] CRAN (R 3.6.2)
dplyr 0.8.5 2020-03-07 [1] CRAN (R 3.6.3)
ellipsis 0.3.1 2020-05-15 [1] CRAN (R 3.6.2)
fansi 0.4.2 2021-01-15 [1] CRAN (R 3.6.2)
fs 1.5.0 2020-07-31 [1] CRAN (R 3.6.2)
gh 1.1.0 2020-01-24 [1] CRAN (R 3.6.0)
glue 1.4.2 2020-08-27 [1] CRAN (R 3.6.2)
hms 0.5.3 2020-01-08 [1] CRAN (R 3.6.0)
httr 1.4.2 2020-07-20 [1] CRAN (R 3.6.2)
jsonlite 1.7.0 2020-06-25 [1] CRAN (R 3.6.2)
lifecycle 1.0.0 2021-02-15 [1] CRAN (R 3.6.2)
magrittr 2.0.1 2020-11-17 [1] CRAN (R 3.6.2)
memoise 1.1.0 2017-04-21 [1] CRAN (R 3.6.0)
pillar 1.5.1 2021-03-05 [1] CRAN (R 3.6.2)
pkgbuild 1.1.0 2020-07-13 [1] CRAN (R 3.6.2)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.0)
pkgload 1.1.0 2020-05-29 [1] CRAN (R 3.6.2)
prettyunits 1.1.1 2020-01-24 [1] CRAN (R 3.6.0)
processx 3.4.3 2020-07-05 [1] CRAN (R 3.6.2)
ps 1.3.4 2020-08-11 [1] CRAN (R 3.6.2)
purrr 0.3.4 2020-04-17 [1] CRAN (R 3.6.2)
R6 2.5.0 2020-10-28 [1] CRAN (R 3.6.2)
Rcpp 1.0.5 2020-07-06 [1] CRAN (R 3.6.2)
readr 1.3.1 2018-12-21 [1] CRAN (R 3.6.0)
remotes 2.2.0 2020-07-21 [1] CRAN (R 3.6.2)
rfishbase * 3.0.4 2019-06-27 [1] CRAN (R 3.6.0)
rlang 0.4.10 2020-12-30 [1] CRAN (R 3.6.2)
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.6.0)
rstudioapi 0.11 2020-02-07 [1] CRAN (R 3.6.0)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.0)
stringi 1.4.6 2020-02-17 [1] CRAN (R 3.6.0)
stringr 1.4.0 2019-02-10 [1] CRAN (R 3.6.0)
testthat 2.3.2 2020-03-02 [1] CRAN (R 3.6.0)
tibble 3.1.0 2021-02-25 [1] CRAN (R 3.6.2)
tidyselect 1.1.0 2020-05-11 [1] CRAN (R 3.6.2)
usethis 1.6.1 2020-04-29 [1] CRAN (R 3.6.2)
utf8 1.1.4 2018-05-24 [1] CRAN (R 3.6.0)
vctrs 0.3.6 2020-12-17 [1] CRAN (R 3.6.2)
withr 2.4.1 2021-01-26 [1] CRAN (R 3.6.2)
[1] /Library/Frameworks/R.framework/Versions/3.6/Resources/library
----------------------------------------------------------------------------------
readRenviron("/home/user/.Renviron")
libraries <- c("tidyverse","rgbif","rfishbase","bold","rvertnet","devtools","rredlist","countrycode")
to_install <- libraries[!sapply(libraries,requireNamespace,quietly=TRUE)]
invisible(suppressWarnings(suppressMessages(if(length(to_install)>0) install.packages(to_install, repos="https://cran.ma.imperial.ac.uk/"))))
invisible(suppressWarnings(suppressMessages(lapply(libraries, library, character.only = TRUE))))
fb_country <- country()
Error: Can't join on 'Subfamily' x 'Subfamily' because of incompatible types (logical / character)
Many thanks in advance.
@CamillaRyan Thanks for the detailed report! It helps a lot.
Please try upgrading your version of readr
to the latest release and trying again? (You may strongly consider upgrading some of your other packages here too, including your version of R?).
@cboettig Thank you for your quick reply. Sadly that didn't work but resulted in the following error:
Error: Can't join on x$GenCode
x y$GenCode
because of incompatible types.
ℹ x$GenCode
is of type y$GenCode
is of type
I don't know if you have any other suggestions? We know that we need to upgrade our packages (asap!) we were just hoping for a quicker fix so we have more time to sort out compatibility between our scripts :)
I had this same issue https://github.com/ropensci/rfishbase/issues/222#issue-972648054 and was able to resolve it by updating my version of arkdb.