I have been using the following code in my .Rprofile startup file to load a bunch of user-defined functions into a separate environment (I know, I should get around to writing a proper package):
my.env <- new.env() sys.source("C:/Users/david/Dropbox/syncprofile.R", my.env) attach(my.env)
This approach has been working fine for several years with many versions of R and Rstudio.
Since updating to R-3.6.0 it is giving a fatal error (see attached image files of screen grabs).
If I use Rgui there is no problem.
If I start RStudio without .Rprofile and then: source() the syncprofile.R file there are no errors; or run the contents of .Rprofile manually there are no errors.
I am using RStudio 1.2.1335 on Windows 10 version 1803 (64 bit).