Update R scripts/functions for JOH.Features updates