How did the "#refugeeswelcome" appear in my R Console?

That has nothing to do with RStudio (or even R itself).

There is a package (I forget which one but I think it's to do with mapping) which uses that message when the package is loaded. I'm surprised CRAN allows that, but the author of the package decided to implement it.