Biostatistique et analyse informatique des données de santé avec R et Stata
There are French and English versions for two textbooks on applied biostatistics (Master level) using R or Stata available on Iste Editions (ebook or paperback). The companion website includes datasets and R or Stata code.
From SAS to R in clinical research
A draft textbook I started working on back in 2016, when I was reading some books from SAS Publishing. No idea if it will be finished any soon.
R Companion to Design and Analysis of Experiments
A very old attempt at adapting SAS and Design Expert code for this great book written by Douglas C. Montgomery. Chapters 1 to 6 (partly) were once completed using R 2.x but there would still be a lot to do to make it useable in a classroom.