pkgInfo not available

pkgInfo is not an R package, it refers to something else, can you post the complete error message you get? Or even better a REPRoducible EXample (reprex) illustrating your issue?