Don't require mosaicData in plain template.
tweaking R code in template