Uncheck the following in Rstudio: Tools -> Global Options -> Packages -> Development -> Save and reload R workspace on build
Source: https://github.com/rstudio/rstudio/issues/7287#issuecomment-1688578545