Modifications to R rda script to avoid halting execution when no components are retained