fixing r cmd check errors