TRANSLATING MODEL ‘height_model’ FROM Stan CODE TO C++ CODE NOW. successful in parsing the Stan model ‘height_model’. COMPILING THE C++ CODE FOR MODEL ‘height_model’ NOW.
*OS: x86_64, mingw32; rstan: 2.21.2; Rcpp: 1.0.5; inline: 0.3.15 * Error in file(con, “r”) : invalid ‘description’ argument
Welcome to the Stan forums and sorry you’re getting an error! I’m pretty useless when it comes to Windows issues unfortunately, but hopefully @bgoodri, @bbbales2, @andrjohns or one of my other Windows literate colleagues will have an idea how to fix this.
In the meantime, a few questions that may help them troubleshoot this:
Which version of R do you have? In particular, is it greater or less than 4.0?
Is there anything in the file at "~/.R/Makevars" or "~/.R/Makevars.win"? You can just by running from R file.edit("~/.R/Makevars") and file.edit("~/.R/Makevars.win"), which should open those files.
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”.
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!