If that doesn't work, go to www.cran.r-project.org and look for 'contributed packages' then 'spatstat'.