Use Rstudio
Include tidyverse
Turn warnings into errorsI use R professionally for biostatistics and I can't remember the last time I had to use the base syntax because something couldn't be done with the tidyverse approach.
If you learned data.table however, it's better to just stay in data.table. Nothing in the tidyverse can touch the efficiency of data table.
I think exceptions where base-R is necessary can be taught as they arise.
I think it is important to use tidyverse because of the many quirks, surprises, and inconsistencies in base R. It would be helpful if others share their reasoning, or at least point to their favorite blog explanation, so that beginners can understand the problems they will face.
Unfortunately 5 minutes of Googleing failed a to produce a reference for me --- the start of some advanced R book that begins by asking "do you need to read this?" and showing examples whose results are predicted incorrectly by most people. Perhaps another user can provide the info.
* Reference to good HN thread: https://news.ycombinator.com/item?id=20362626
* Particularly pointed notes on base R problems: https://news.ycombinator.com/item?id=20363806
However, some data are better suited to be represented in the form of matrices. Putting matrix-like data in a data.frame is silly, since performance will suffer and you would have to convert it back and forth for many matrix-friendly operations like PCA, tSNE, etc. The creator of data.table shares this opinion [1]. And similar opinions are generally given by people who are familiar with problems that fall outside the data.frame model [2].
[1]: https://twitter.com/mattdowle/status/1037949621773844480?lan...