Error in file(con, "r") : invalid 'description' argument

Hello, also new here. I also used the lines above to update as per

Also ran the lines to clear out makevars. Edit: I now understand that the lines are supposed to open the files for edits but don’t seem to do anything in rstudio. In r I get ‘cant open file’ or similar. Perhaps I’m missing some makevars or something? Excuse my ignorance it’s all magic to me.

And get the same errors when trying to compile models: “Error in file(con, “r”) : invalid ‘description’ argument”.

packageVersion(“StanHeaders”)
[1] ‘2.21.0.5’
packageVersion(“rstan”)
[1] ‘2.21.2’

version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 0.2
year 2020
month 06
day 22
svn rev 78730
language R
version.string R version 4.0.2 (2020-06-22)
nickname Taking Off Again

I had a lot of trouble getting rstan to work when I updated to R4 a week or so ago, (particularly getting rtools4 to work) but it was working on the same models until today. I must’ve inadvertently updated. Let me know if I can add any info to help!