/
Using the `conflicted` package
Using the `conflicted` package
I’ve been trying out the conflicted
package and have found it to be pretty useful so far. It is a super simple package, with no actual functions (it “runs” in the background). Below is an example of some of its behavior when I had zoo
loaded.
CWx_15min$TIMESTAMP <- as.Date(CWx_15min$TIMESTAMP)
Error: as.Date found in 2 packages. You must indicate which one you want with ::
* zoo::as.Date
* base::as.Date
This isn’t, perhaps, a super useful example, but does provide a sense of what happens when a function conflict is detected. And to be clear, I fixed the above error with the following:
CWx_15min$TIMESTAMP <- base::as.Date(CWx_15min$TIMESTAMP)
For more on the package, see the GitHub page: https://github.com/r-lib/conflicted.
Cheers!
, multiple selections available,
Related content
An introduction to different R dialects: Base R, the Tidyverse and data.table
An introduction to different R dialects: Base R, the Tidyverse and data.table
More like this
Profiling and comparing code performance in R
Profiling and comparing code performance in R
More like this
Parallel computing across sessions, cores, and networks: The `future` and `furrr` package in R - cross OS parallel computing made easy
Parallel computing across sessions, cores, and networks: The `future` and `furrr` package in R - cross OS parallel computing made easy
More like this
Installing R packages
Installing R packages
More like this
R + Docker = Rocker
R + Docker = Rocker
More like this
How to use Make with R and Latex
How to use Make with R and Latex
More like this