The command source("~/.active-rstudio-document")
is trying to load an R file. This ~/.active-rstudio-document
looks very strange. Does .active-rstudio-document
exist?
The link was to give you an idea of what the source
command does.
We need some idea of what you are doing. See FAQ: How to do a minimal reproducible example ( reprex ) for beginners for how to supply us with some information.