Four phases, roughly a hundred and ten to a hundred and fifty hours. R is quick to get results from and slow to get right, which is a pleasant order to learn in: you will produce a real chart in the first week and spend the next three months finding out what it was hiding.
Settle the base R and tidyverse question before anything else, because it is the single biggest obstacle to learning R from the internet.
There are two dialects. Base R is from 1993 and comes with the language. The tidyverse is a set of packages from around 2014 that solve the same problems with a consistent design and a pipe. Both are current, both are maintained, and neither is going away. Search for "how do I filter rows in R" and the first three answers will use df[df$x > 5, ], subset(df, x > 5) and filter(df, x > 5) without any of them mentioning that these are three dialects of the same idea.
This course teaches base R first, in phase one, then the tidyverse from phase two, and says which one it is using. Learn base R even though you will mostly write tidyverse: the tidyverse is built on it, every error message comes from it, and the moment a package you need does not have a tidy interface you are back in it.
Phase 1, around twenty-five hours. Base R with no packages. It is tempting to skip to dplyr and this is the phase that pays off most later, because the bugs you will hit for the next year - silent coercion, the recycling rule, factors behaving as integers, [ against [[ - all live here.
Build: a script that reads a CSV, cleans it and prints a summary. No tidyverse. Do the subsetting with [ ], the summary with tapply(), and feel what the next phase is replacing.
Phase 2, around forty hours, and the one that changes how R feels. Import, dplyr, tidyr, purrr, stringr, lubridate, ggplot2.
Spend real time on pivoting. More analysis questions are solved by pivot_longer() than by any other single function, and most "how do I plot these twelve columns" problems are really "pivot this first". Get comfortable reading ggplot2 as a grammar rather than memorising chart recipes, and the charts nobody wrote a function for become one line.
Build: take a messy public dataset and produce five charts from it. Something real, with missing values and inconsistent spellings - a government open-data CSV is ideal. The cleaning is the exercise; the charts are the proof.
Phase 3, around thirty hours. Statistics and reporting.
If you have no statistical background, do not skim this. The code is easy - t.test(y ~ x) is one line - and that is the danger: R will run any test on any data and print a p-value. The work is knowing what the test assumes and whether your data meets it. Read the diagnostic plots before the p-value, every time.
Build: one Quarto report that answers a question with a statistic, a chart and a sentence, and that re-renders correctly when you change the input data. Then change the data and watch the sentence update. That moment is the point of the whole phase.
Phase 4, around thirty hours. Shiny, performance, packages.
Shiny is best learned by building something small and wrong first. Make an app with three outputs that each filter the data separately, notice it is slow, and refactor to one reactive(). That refactor teaches reactivity better than the documentation does.
Build: a Shiny dashboard over the phase 2 dataset, then wrap the cleaning functions in a package with tests and an renv.lock, and deploy the app to shinyapps.io. Doing all three on the same data is what connects them.
What to skip on a first pass. S4 unless you work with Bioconductor. data.table until you have data big enough to need it - its syntax is excellent and completely different, and learning two dialects at once is how people end up confident in neither. Rcpp until a profile tells you to. Tidy evaluation ({{ }}, .data) until you are writing functions that wrap dplyr verbs, which will not be in your first month.
Where to look things up. R for Data Science is free online and is the standard text for phases 2 and 3. Advanced R is the book for phase 4 and explains the language rather than the packages. The cheatsheets at posit.co are genuinely good - the dplyr and ggplot2 ones are worth printing. And vignette(package = "dplyr") lists long-form guides that ship inside the packages themselves, which almost nobody knows about.
One habit worth forming now. After every line that changes your data, run str() or glimpse() on the result. Not sometimes - every time, while you are learning. R's willingness to coerce types quietly means the difference between a correct analysis and a wrong one is frequently a column that became a character vector three steps ago, and the only way to catch it is to look.