If you can't or don't want to upgrade R for whatever reason (for example if you are running a SQL Server in-database R), a solution to this problem for me was to install the pbkrtest package from source directly (package version history). You can try different versions, but the one that worked for me was 0.4-4. You can install using the following command:
install.packages(path_to_file, lib=lib,repos = NULL, type="source")
where "path_to_file" is the location of your package with the package file name ending in .tar.gz likely and "lib" is the optional parameter for your R library -- if omitted the default will be used.