When would you use closed cell polyurethane foam insulation?

A closed cell application is used primarily for walls and roof applications, crawl spaces, bathrooms, and other high moisture environments and gives higher R value.