With the following code as a single file in a test project on a network drive I see the attached behaviour. The zip file contains screenshots of the event logs with/without indexing for RStudio versions 1.2.516 (daily) and 1.1.442 when each line is run separately by pressing Ctrl+Enter. I also included screenshots for running all commands at once Ctrl+a -> Ctrl+Enter ('_ctrl_a' in file name). Additionally, I included a screencast of the behaviour when running line by line in version 1.1.442 (ndexing turned off).
library(dplyr)
data(iris)
summary(iris)
plot(Sepal.Length ~ Sepal.Width, data = iris)
boxplot(Sepal.Length ~ Species, data = iris)
iris_mean = iris %>%
group_by(Species) %>%
summarise(sep_w = mean(Sepal.Width, na.rm = TRUE),
sep_l = mean(Sepal.Length, na.rm = TRUE))
iris_mean
It seems that turning off indexing does help a little, but is still far from performing well. As you can see from the screencast, it is only every other command that takes a long time.
I must correct my previous statement that running projects locally exhibits the same behaviour. I tested myself today and did not encounter any slowness (project located on C:/ drive). So it seems that this is only affecting projects on network drives. Still, I am wondering what changed between versions 0.9xxx and 1.1xxx and also between windows 7 and windows 10.
I see that I cannot attach a zip file. Can you provide an email address to which I could send it?