Package conflicted freezes Rstudio

When i use the r package conflicted to detect namespace conflicts, it often freezes Rstudio when a namespace conflict is detected. I am not able to save my r script and run any code.

I am using the most up to date version of r, rstudio, and conflicted on a fedora 31 machine.

Can I try to reproduce this error by attaching any particular libraries?

try

dplyr::filter vs. stats::filter

Hi Peter,
This code works fine on my Windows 10 machine:

# install.packages("conflicted")
library(conflicted)
library(dplyr)

# This causes the intentional error - forcing you to be more specific:
iris %>% filter(Sepal.Length > 7.1)

# Both of these work
dplyr::filter(iris, Sepal.Length > 7.1)
stats::filter(1:20, rep(1, 3))

If this code causes RStudio to crash on your machine, I suggest you report a bug at
https://github.com/r-lib/conflicted.
You will probably need to provide the output produced from running
sessionInfo()

HTH

Pls try this:

require(conflicted)
require(dplyr)

filter = dplyr::filter
rm(filter)

After I stopped using the package conflicted, all problems are gone. This package tends to freeze R or RStudio for unknown reasons.

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.