I am writing an R script that looks like this
percent_16_30 = departments %>%
mutate(agerange = agerange(age, 16, 30)) %>%
filter(!is.na(department_num), !is.na(year), !is.na(is_man), !is.na(age)) %>%
group_by(municipio, year, is_man) %>%
summarise(percent_18_30 = mean(agerange, na.rm = T), total_pop = length(agerange)) %>%
ungroup() %>%
I was using tab to 4 spaces indenting to do all this. I understand that this is not necessarily R’s recommended best practices, but it feels organized to me.
With the upgrade to 3.2, the indentation setting a bit weirder.
pop_changes = percent_16_30 %>%
ggplot(
aes(x = men_to_women_1973, y = men_to_women_1993)) +
geom_point()
But here is what sublime text gives me with the indentation just from pressing tab
in 3.2
pop_changes = percent_16_30 %>%
ggplot(
aes(x = men_to_women_1973, y = men_to_women_1993 )) +
geom_point()
It has a weird double indent after before the ggplot
and then correct single-indents after that. The men_to_women_1993
part is also odd, it’s adding a tab after tab-complete.
I don’t think this behavior is due to any R-specific plugin. Does anyone know what setting is making this happen?
Thanks for any help.