One of the key differentiators between traditional insulation materials and spray foam insulation is the latter’s ability to insulate and air seal. Foam insulation provides an air barrier to wherever it is applied to help mitigate air leakage from the building. Air sealing the building envelope with sprayed-in foam insulation also helps address moisture ingress to reduce the risk of mold and mildew growth as well as the formation of ice dams in colder climate zones during the winter months.  When you compare foam insulation with traditional fiberglass insulation and cellulose insulation, sprayed insulation minimizes air infiltration, it assists in limiting moisture vapor from entering and escaping the home, which in turn reduces the load on heating and cooling systems. Below is a video that compares fiberglass, cellulose and open-cell spray foam in terms of insulating and air sealing value.

I recently did a remodel project for my basement using spray foam insulation. The original builder has used fiberglass, but I wanted the best insulation i could find. We chose closed cell foam because it blocks moisture from getting into the house. It took one day to install and was fumey for about 3 hours. It was pretty cool watching it being done. It comes out as a liquid and then expands rapidly into a foam. It's quick! Then they took a types of saw to shave it flat with the wall studs so we could then go ahead and drywall.
OK, Peter, I finally went back and read Alex Wilson's article on what he perceives as a serious problem. I haven't seen the full report, but based on the summary he wrote on the Green Building Advisor website, I question the science. It seems to me that he's chosen the wrong metric and he's basing his conclusion on too many assumptions because he doesn't have enough data. You can see my comments at the end of his article.
I used this product to seal and insulate my rim joists as I am finishing the basement. The builder used R13 batt insulation when we built the house 3 years ago. I use a dehumidifier to control moisture in the basement which is below grade. The setting I use is 55%. The dehumidifier kicks on periodically and requires emptying every few days. Since using the foam all around the house on the rim joists and sill plate, the dehumidifier has stayed at 50% for over two weeks since spraying and rarely turns on anymore. I also put the original R13 batt insulation back up after the foam cured.
You can also take advantage of Heng’s rubber roof coating if you need to coat your RV’s rubber roof. It works well in sealing EPDM rubber roofs. It is also useful on seams and tears as well as in sealing vents and air conditioning units. This roof coating is a good choice if you are just in search of that with a 1-gallon capacity at the most reasonable price.

Roof Coating Seal