Operating System: Windows 7

Rstudio version: 1.1.383

R version 3.4.2

I have followed this https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Windows

and got the value 10 at the end, so I assume I am ok on the install part.

**I then opened Rstudio, saved a new script under test.stan**

**Below is the beginning of the script (I took it from a paper just to test how to run):**

library(“rstan”)

// Set up the true parameter values

a = c(.8, 1)

b = c(2, .1)

sigma = .2

// Simulate data

x = (1:1000)/100

N = length(x)

ypred = a[1]*exp(-b[1]*x) + a[2]*exp(-b[2]*x)
y = ypred*exp(rnorm(N, 0, sigma))

**I ran those lines and got this error:**

PARSER EXPECTED: whitespace to end of file.

FOUND AT line 1:

library(“rstan”)

// Set up the true parameter values

a = c(.8, 1)

b = c(2, .1)

sigma = .2

// Simulate data

x = (1:1000)/100

N = length(x)

ypred = a[1]*exp(-b[1]*x) + a[2]*exp(-b[2]*x)
y = ypred*exp(rnorm(N, 0, sigma))

Error in stanc(model_code = paste(program, collapse = “\n”), model_name = model_cppname, :

failed to parse Stan model ‘test’ due to the above error.

**I am not sure what is wrong, any help would be greatly appreciated.**