When try to open a project, Package 'dplyr' version 1.0.4 cannot be unloaded error message is shown

When you try to open a project, you might get the below error mesage.

Error in value[[3L]](cond) : \n  Package 'dplyr' version 1.0.4 cannot be unloaded:\n Error in unloadNamespace(package) : namespace 'dplyr' is imported by 'tidyr', 'janitor' so cannot be unloaded

This error happens when you have the .RProfile file under the Documents folder and removing the .RProfile file fixes the issue.