Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.5 stringsAsFactors=FALSE verbiage outdated? #269

Open
engineerchange opened this issue May 3, 2020 · 4 comments
Open

2.4.5 stringsAsFactors=FALSE verbiage outdated? #269

engineerchange opened this issue May 3, 2020 · 4 comments

Comments

@engineerchange
Copy link
Contributor

engineerchange commented May 3, 2020

Currently, 2.4.5 references options(stringsAsFactors=FALSE) as a .Rprofile preset that can make code less portable. R 4.0.0 made stringsAsFactors=FALSE the default behavior, so recommend re-write or suggest different non-portable example in .Rprofile file.

Snippet:

Try to avoid adding options to the start-up file that make your code non-portable. For example, adding options(stringsAsFactors = FALSE) to your start-up script has knock-on effects for read.table and related functions including read.csv, making them convert text strings into characters rather than into factors as is default. This may be useful for you, but can make your code less portable, so be warned.
@Robinlovelace
Copy link
Collaborator

👍 definitely one we can happily move on from now.

@Robinlovelace
Copy link
Collaborator

P.s. if you want to have a 1st bash at a fix for R 4.0.0 PRs are welcome. I plan to get back to this over the weekend if not.

@engineerchange
Copy link
Contributor Author

Going to add a note that 3.4.1 has similar verbiage re: stringsAsFactors=FALSE default behaviour.

@Robinlovelace
Copy link
Collaborator

Awesome, I plan to look at this properly over the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants