3 ms·
You could add to your .Rprofile options(stringsAsFactors=FALSE)
by kgwgk 7y ago
You could add to your .Rprofile
options(stringsAsFactors=FALSE)
- thom 7y agoThis is likely to break things when you share or publish your code.
- kgwgk 7y agoUpgrading will also break things. And code which depends on defaults will be broken either in new releases or in older releases.
- s1t5 7y agoUpgrading makes the changes explicit, tinkering with your environment variables doesn't.
- kgwgk 7y agoUpgrading is not different than changing environment variables as far as breaking existing code is concerned. You can always run R --no-init-file to be sure that you have the default settings. Now you have to know what default settings the code that you want to run expects.
- thom 7y agoYes, I mean, we could list things all day that make R a horrible environment for reproducible analysis or production deployment, but it is what it is.
- kgwgk 7y agoYou’re right. My defensive reply was unwarranted.
- truculent 7y agoAnd make your code potentially non-reproducible?
- kgwgk 7y agoIf you care about that don't rely on defaults. This upgrade makes old code non-reproducible, should everyone abstain from upgrading?
- baldfat 7y agoWell that is why there is 4.0. Hadley Wickham has had a HUGE influence on R and it is now we have a lot of new things we can use that makes it reproducible in base R.