## Been having issues lately when using tidyverse functions such as mutate or arrange 
## while having single cell packages such as scran and scater loaded, since they seem to have
## similar functions, that override the tidyverse functions
## Add this snippet to chunks that use tidyverse functions to unload packages that interfere

if(c("package:scran","package::scater") %in% search()){
  detach("package:scater", unload=TRUE)
  detach("package:scran",unload=TRUE)
}