I tried to use conflicted package in my rmd file and I've put in description file (usethis::use_package("conflicted"))
start of the rmd script
library(conflicted)
library(dplyr)
conflict_prefer("filter", "dplyr")
After that, I used devtools::check(args = c('--no-manual','--as-cran'))
Below it's OK.
── R CMD check results ─────────────────────────────── mypackage 0.0.0.1 ────
Duration: 58.2s
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
R CMD check succeeded
I used conflict_scout()
6 conflicts:
* `filter` : [dplyr]
* `intersect`: [dplyr]
* `lag` : dplyr, stats
* `setdiff` : [dplyr]
* `setequal` : [dplyr]
* `union` : [dplyr]
And After that I used r-devel check
bash R-devel.sh CMD check --as-cran .../mypackage_0.0.0.1.tar.gz
the result is
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘conflicted’
With this error the status is : 1 ERROR, 1 NOTE
To tell you the truth, I'm completely lost in solving the problem. I went to different websites without really finding a solution.
Can you help me?
Thanks