I ran across a link today on stackoverflow that linked to an old version of the book at http://adv-r.had.co.nz/
The top of the page says
You’re reading the first edition of Advanced R; for the latest version see the second edition.
However, the link to the second edition is http://adv-r.had.co.nz/Introduction.html which is still the same website. I think the link needs to be upadted to https://adv-r.hadley.nz/