can't read https model file -rats-fit sample
Summary:
stan(file=,...) can't read https link
Reproducible Steps:
run sample: y <- as.matrix(read.table('https://raw.github.com/wiki/stan-dev/rstan/rats.txt', header = TRUE)) x <- c(8, 15, 22, 29, 36) xbar <- mean(x) N <- nrow(y) T <- ncol(y) rats_fit <- stan(file='https://raw.githubusercontent.com/stan-dev/example-models/master/bugs_examples/vol1/rats/rats.stan', data = list(N=N, T=T, y=y, x=x, xbar=xbar))
got error message: Error in file(fname, "rt") : cannot open the connection In addition: Warning messages: 1: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="https://raw.githubusercontent.com/stan-dev/example-models/master/bugs_examples/vol1/rats/rats.stan": The filename, directory name, or volume label syntax is incorrect 2: In file(fname, "rt") : cannot open file 'G:\Source\Repos\R\R4DS\https:\raw.githubusercontent.com\stan-dev\example-models\master\bugs_examples\vol1\rats\rats.stan': Invalid argument Error in get_model_strcode(file, model_code) : cannot open model file "G:\Source\Repos\R\R4DS\https:\raw.githubusercontent.com\stan-dev\example-models\master\bugs_examples\vol1\rats\rats.stan"
RStan Version:
The version of RStan you are running 2.26.8
R Version:
The version of R you are running 4.1.3
Operating System:
Your operating system Windows 10 2021H2