R:add missing dependency