Adopt RStudio's fix, which doesn't directly mutate environ