It uses available information to provide the most accurate information of CRAN at any given time.
Source:R/cran_history.R
cran_history.Rd
Several sources are used: CRAN's database to check packages files and versions, CRAN's volunteers actions for when packages are archived or removed and CRAN's comments to fill in the gaps.