debug if no Groupdetail file present+rgg change

rgg directly call a r file for the analysis