The problem you saw with the closed cell foam pulling away like that is due to the heat of the foam was to hot. It was actually curing out and making foam before it could adhere to the wood. The installer wasn't reading his foam correctly. He should of stopped and turned down the heat on his hose temp. Also installers have to be aware that as the sun rises and the temp in attics rises the subtrates get hotter as well. This will cause the installer to adjust his heat when installing the foam as the temp changes thru out the day.
While the R value will vary, most ocSPF products have an R value of around 3.8 per inch. Unlike medium-density closed-cell SPF, ocSPF is not a vapour barrier. When installed at 5.5 inches or more, ocSPF does act as an air barrier. It is often used for interior walls because it provides sound reduction by blocking and absorbing air leakage. It is usually only recommended for indoor applications.
SPF, a spray-applied cellular plastic, is made by mixing chemicals to create foam. Those chemicals react very quickly, expanding on contact to create foam that insulates, air seals and provides a moisture barrier. When properly installed, SPF forms a continuous barrier on walls, around corners and on contoured surfaces. It resists heat transfer very well and is an effective solution for reducing unwanted air infiltration through cracks, seams, and joints.
R-value is the term given to thermal resistance to heat flow. The higher the R-value of an insulation product, the more effective the insulation properties. Spray polyurethane foam comes in a range of densities and cel structure. Low density foams are referred to as Open Cel SPF while higher density foams are referred to as Closed Cel foam. 1.8-2 pound polyurethane foam has the highest R-value of readily available spray foam insulation used in homes and buildings.