thierrygosselin / radiator

RADseq Data Exploration, Manipulation and Visualization using R
https://thierrygosselin.github.io/radiator/
GNU General Public License v3.0
58 stars 23 forks source link

write_colony: could not find function "%>%" #98

Closed rh565 closed 3 years ago

rh565 commented 3 years ago

Hi,

I am having some trouble with the write_colony function. When running:

data <- radiator::read_vcf(data = "populations.snps.vcf", parallel.core = 1L) colony_file <- radiator::write_colony(data = data)

I get the error message:

Importing data... Calibrating REF/ALT alleles... Error in dplyr::select(x, -SPLIT_VEC) %>% dplyr::mutate(GT_VCF_NUC = dplyr::if_else(GT_BIN == : could not find function "%>%"

I thought this might be a problem with my installation of dplyr or magrittr, but I have just updated R (now running R 4.0.3), RStudio (v1.3.1093) and re-installed all packages. %>% works with no problem in my own code.

[1] F:/R-4.0.3/library

thierrygosselin commented 3 years ago

Hi, sorry about the problem you're experiencing. I don't think the problem is on your side... Over the week end I've been upgrading the codes to work better with Windows and the parallel mode. I've switched to future package for parallelization and carrier to contains globals. Anyway, short story, it's not you.

Do you mind sending the data (by email) so that I can try to replicate the problem on my Mac ?

Best Thierry

rh565 commented 3 years ago

Hi - thanks for your fast response. Will do! Beki

thierrygosselin commented 3 years ago

Should work without problems now Remove and install radiator Re-open the issue if you're still experiencing problems