I was using one package on R version 3.4.2, but suddenly my R Studio started showing error: "R code execution error". Then, I tried reinstalling the same version of R but now I am unable to use the same package because it's showing the following error:
Error in readRDS(pfile) : **
** cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
Please suggest how to fix this problem.