change call p=p to prob=p, see if this avoids arugment matching cran check problem