the error R gives is Error in resize(x, w = size) : unused argument (w = size) . I tried all the obvious things and noo, couldn't solve it