# Compilation Error with StanHeaders: no such file or directory

**URL:** <https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007>\
**Category:** RStan\
**Tags:** rstan\
**Created:** [February 6, 2020, 10:19pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007 "2020-02-06T22:19:23Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![smonto2](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/smonto2/32/9650_2.png) [@smonto2](https://discourse.mc-stan.org/u/smonto2)\
**Post date:** [February 6, 2020, 10:19pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/1 "2020-02-06T22:19:23Z")

</div>

#### Summary:

Compilation error when running the main `stan` function. I receive an error that several files used by StanHeaders cannot be found (even when they exist).

#### Description:

I am a new Stan user and had no problem with installation of all dependencies. However, when I try to run a simple “Hello, world” type example ([found here](https://mc-stan.org/workshops/halifax2017/exercise_2.html)), I receive a compilation error that I put under the current output section.

I have messed with changing the `Makevars.win` file and tried several others alternatives I found within the issues requests, but to no avail. From the output, I believe the issue to be related somehow to the file name having a space, but Program Files should be the standard in all of Windows file naming, how would this be an issue?

#### Reproducible Steps:

```
remove(list = ls())
library(rstan)

hello.stan <- 'data {
  int<lower=0> N;
  vector[N] y;
}
parameters {
  real mu;
  real<lower=0> sigma;
}
model {
  y ~ normal(mu, sigma);
}
'

N <- 100
y <- rnorm(N, mean = 5, sd = 10)
stanfit <- stan(model_name = hello.stan, data = list(N, y))

```

#### Current Output:

`Error in compileCode(f, code, language = language, verbose = verbose) : Compilation ERROR, function(s)/method(s) not created!`  
`g++.exe: error: Files/R/R-3.6.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp: No such file or directory`  
`g++.exe: error: Files/R/R-3.6.2/library/StanHeaders/include: No such file or directory`  
`g++.exe: error: Files/R/R-3.6.2/library/RcppEigen/include: No such file or directory`  
`make: *** [C:/PROGRA~1/R/R-3.6.2/etc/x64/Makeconf:215: file4f647a08385b.o] Error 1`

#### RStan Version:

2.19.2

#### R Version:

R version 3.6.2 (2019-12-12)

#### Operating System:

Windows 10 Pro, 64 Bit, Version 1809

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [February 6, 2020, 11:59pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/2 "2020-02-06T23:59:50Z")

</div>

This was an issue with the StanHeaders version getting ahead of the RStan version on CRAN, since some of the file paths changed between the two versions. It’s since been reverted but CRAN is still providing the 2.21 binaries. To fix this you need to reinstall the packages from source:

```
install.packages(c("rstan","StanHeaders"),type="source")

```

---

<div class="post-metadata">

**Author:** ![dgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/dgomes/32/10874_2.png) [@dgomes](https://discourse.mc-stan.org/u/dgomes)\
**Post date:** [February 29, 2020, 5:06am UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/3 "2020-02-29T05:06:28Z")

</div>

I am having the same issue on a Windows 7 OS (bootcamp on Mac), with R 3.6.2. I have tried your suggestions, and it doesn’t seem to help. I am getting the exact same errors as smonto2.

Does anyone have any other thoughts?

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [February 29, 2020, 10:46am UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/4 "2020-02-29T10:46:54Z")

</div>

Do you get the same error about the `Eigen.hpp` file?:

`StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp: No such file or directory`

What is the result of:

```
packageVersion("rstan")
packageVersion("StanHeaders")

```

---

<div class="post-metadata">

**Author:** ![dgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/dgomes/32/10874_2.png) [@dgomes](https://discourse.mc-stan.org/u/dgomes)\
**Post date:** [February 29, 2020, 4:47pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/5 "2020-02-29T16:47:34Z")

</div>

Yes I do. Here is the actual output. It is possible I missed something, but I think it is the same error as above.

> `Error in compileCode(f, code, language = language, verbose = verbose) :  
> Compilation ERROR, function(s)/method(s) not created! g++.exe: error: Files/R/R-3.6.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp: No such file or directory  
> g++.exe: error: Files/R/R-3.6.2/library/StanHeaders/include: No such file or directory  
> g++.exe: error: Files/R/R-3.6.2/library/RcppEigen/include: No such file or directory  
> make: \*\*\* [C:/PROGRA~1/R/R-36~1.2/etc/x64/Makeconf:215: fileff83e8625cb.o] Error 1  
> In addition: Warning message:  
> In system(cmd, intern = !verbose) :  
> running command ‘C:/PROGRA~1/R/R-36~1.2/bin/x64/R CMD SHLIB fileff83e8625cb.cpp 2\> fileff83e8625cb.cpp.err.txt’ had status 1  
> Error in sink(type = “output”) : invalid connection

> packageVersion(“rstan”)  
> [1] ‘2.19.3’  
> packageVersion(“StanHeaders”)  
> [1] ‘2.21.0.1’

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [February 29, 2020, 4:52pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/6 "2020-02-29T16:52:44Z")

</div>

You need both StanHeaders and rstan to be 2.19.x. In a clean R session, just do a

```
remove.packages(c("StanHeaders", "rstan"))
file.remove(".RData")
# restart R
install.packages(c("StanHeaders", "rstan"))

```

---

<div class="post-metadata">

**Author:** ![dgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/dgomes/32/10874_2.png) [@dgomes](https://discourse.mc-stan.org/u/dgomes)\
**Post date:** [February 29, 2020, 5:06pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/7 "2020-02-29T17:06:26Z")

</div>

That doesn’t seem to solve it. I am still getting version 2.21.X Is there a way to specify which version I need?

> remove.packages(c(“StanHeaders”, “rstan”))  
> Removing packages from ‘C:/Program Files/R/R-3.6.2/library’  
> (as ‘lib’ is unspecified)

I have tried both:

> install.packages(c(“StanHeaders”, “rstan”), type=“source”)

and

> install.packages(c(“StanHeaders”, “rstan”))  
> trying URL ‘[https://cran.rstudio.com/bin/windows/contrib/3.6/StanHeaders\_2.21.0-1.zip](https://cran.rstudio.com/bin/windows/contrib/3.6/StanHeaders_2.21.0-1.zip)’  
> Content type ‘application/zip’ length 2359184 bytes (2.2 MB)  
> downloaded 2.2 MB

> trying URL ‘[https://cran.rstudio.com/bin/windows/contrib/3.6/rstan\_2.19.3.zip](https://cran.rstudio.com/bin/windows/contrib/3.6/rstan_2.19.3.zip)’  
> Content type ‘application/zip’ length 4734399 bytes (4.5 MB)  
> downloaded 4.5 MB

> package ‘StanHeaders’ successfully unpacked and MD5 sums checked  
> package ‘rstan’ successfully unpacked and MD5 sums checked

> The downloaded binary packages are in  
> C:\Users\User\AppData\Local\Temp\Rtmp44eSx2\downloaded\_packages

> library(rstan)  
> Loading required package: StanHeaders  
> Loading required package: ggplot2  
> rstan (Version 2.19.3, GitRev: 2e1f913d3ca3)  
> For execution on a local, multicore CPU with excess RAM we recommend calling  
> options(mc.cores = parallel::detectCores()).  
> To avoid recompilation of unchanged Stan programs, we recommend calling  
> rstan\_options(auto\_write = TRUE)  
> For improved execution time, we recommend calling  
> Sys.setenv(LOCAL\_CPPFLAGS = ‘-march=corei7 -mtune=corei7’)  
> although this causes Stan to throw an error on a few processors.

> packageVersion(“rstan”)  
> [1] ‘2.19.3’  
> packageVersion(“StanHeaders”)  
> [1] ‘2.21.0.1’

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [February 29, 2020, 11:52pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/8 "2020-02-29T23:52:01Z")

</div>

Since its not automatically picking up the right version, you’ll need to manually specify the version to install:

```
require(devtools)
install_version("StanHeaders", version = "2.19.0", repos = "http://cran.us.r-project.org")

```

Good luck!

---

<div class="post-metadata">

**Author:** ![dgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/dgomes/32/10874_2.png) [@dgomes](https://discourse.mc-stan.org/u/dgomes)\
**Post date:** [March 2, 2020, 5:40pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/9 "2020-03-02T17:40:19Z")

</div>

Thank you, this solved it. For some reason the first time I ran the code, it could not find the package, but running it again worked.

---

<div class="post-metadata">

**Author:** ![jmbrowne26](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jmbrowne26](https://discourse.mc-stan.org/u/jmbrowne26)\
**Post date:** [April 17, 2020, 8:58pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/10 "2020-04-17T20:58:08Z")

</div>

I am having the same problem but the solution above is not working. I get the following:

- installing _source_ package ‘StanHeaders’ …  
\*\* package ‘StanHeaders’ successfully unpacked and MD5 sums checked  
\*\* using staged installation  
\*\* libs

\*\*\* arch - i386  
then a huge number of warnings, mainly ‘variable set but not used’ , ‘array subscript is below array bounds [-Warray-bounds]’  
then it finishes with:  
C:/RBuildTools/3.5/mingw\_32/bin/gcc -I"C:/Users/J5116~1.BRO/DOCUME~1/R/R-36~1.3/include" -DNDEBUG -DNO\_FPRINTF\_OUTPUT -I"…/inst/include" -include stan\_sundials\_printf\_override.hpp -O3 -Wall -std=gnu99 -mtune=core2 -c init.c -o init.o  
C:/RBuildTools/3.5/mingw\_32/bin/gcc -shared -s -static-libgcc -o StanHeaders.dll tmp.def cvodes/cvodes.o cvodes/cvodes\_io.o cvodes/cvodea.o cvodes/cvodea\_io.o cvodes/cvodes\_direct.o cvodes/cvodes\_diag.o cvodes/cvodes\_spils.o cvodes/cvodes\_bandpre.o cvodes/cvodes\_bbdpre.o sundials/sundials\_sparse.o sundials/sundials\_dense.o sundials/sundials\_nvector.o sundials/sundials\_pcg.o sundials/sundials\_math.o sundials/sundials\_sptfqmr.o sundials/sundials\_linearsolver.o sundials/sundials\_iterative.o sundials/sundials\_spgmr.o sundials/sundials\_spbcgs.o sundials/sundials\_spfgmr.o sundials/sundials\_band.o sundials/sundials\_version.o sundials/sundials\_direct.o sundials/sundials\_matrix.o sunmat\_band/sunmatrix\_band.o sunmat\_band/fsunmatrix\_band.o sunmat\_dense/fsunmatrix\_dense.o sunmat\_dense/sunmatrix\_dense.o sunlinsol\_band/sunlinsol\_band.o sunlinsol\_dense/sunlinsol\_dense.o idas/idaa.o idas/idaa\_io.o idas/idas.o idas/idas\_bbdpre.o idas/idas\_direct.o idas/idas\_ic.o idas/idas\_io.o idas/idas\_spils.o nvec\_ser/nvector\_serial.o init.o -LC:/Users/J5116~1.BRO/DOCUME~1/R/R-36~1.3/bin/i386 -lR  
make: \*\*\* [C:/Users/J5116~1.BRO/DOCUME~1/R/R-36~1.3/share/make/winshlib.mk:13: StanHeaders.dll] Error 127  
ERROR: compilation failed for package ‘StanHeaders’

- removing ‘C:/Users/j.browne/Documents/R/R-3.6.3/library/StanHeaders’
- restoring previous ‘C:/Users/j.browne/Documents/R/R-3.6.3/library/StanHeaders’

I would be very grateful for any help you could give me

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [April 18, 2020, 1:21am UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/11 "2020-04-18T01:21:35Z")

</div>

Can you try the steps in this post and see if it works:

> [@Installing RStan (and StanHeaders) on Windows ATM](https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132/2):
>
> Now do install.packages("rstan", type = "win.binary", dependencies = TRUE) install.packages( "https://win-builder.r-project.org/9256KcZ01L9C/StanHeaders\_2.19.2.zip", repos = NULL, type = "win.binary")

---

<div class="post-metadata">

**Author:** ![akaat](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/akaat/32/9607_2.png) [@akaat](https://discourse.mc-stan.org/u/akaat)\
**Post date:** [October 13, 2020, 5:31pm UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/12 "2020-10-13T17:31:23Z")

</div>

I also am getting this error with the example() model on Windows 7, R 4.0.2, and versions:

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

any other guidance?

Compilation argument:  
C:/PROGRA~1/R/R-40~1.2/bin/x64/R CMD SHLIB filedec7e4f5a8e.cpp 2\> filedec7e4f5a8e.cpp.err.txt  
“C:/rtools40/mingw64/bin/“g++ -std=gnu++14 -I"C:/PROGRA~1/R/R-40~1.2/include” -DNDEBUG -I"C:/Program Files/R/R-4.0.2/library/Rcpp/include/” -I"C:/Program Files/R/R-4.0.2/library/RcppEigen/include/" -I"C:/Program Files/R/R-4.0.2/library/RcppEigen/include/unsupported" -I"C:/Program Files/R/R-4.0.2/library/BH/include" -I"C:/Program Files/R/R-4.0.2/library/StanHeaders/include/src/" -I"C:/Program Files/R/R-4.0.2/library/StanHeaders/include/" -I"C:/Program Files/R/R-4.0.2/library/RcppParallel/include/" -I"C:/Program Files/R/R-4.0.2/library/rstan/include" -DEIGEN\_NO\_DEBUG -DBOOST\_DISABLE\_ASSERTS -DBOOST\_PENDING\_INTEGER\_LOG2\_HPP -DSTAN\_THREADS -DBOOST\_NO\_AUTO\_PTR -include “C:/Program Files/R/R-4.0.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp” -std=c++1y -include C:/Program Files/R/R-4.0.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp -I “C:/Program Files/R/R-4.0.2/library/StanHeaders/include” -I “C:/Program Files/R/R-4.0.2/library/RcppEigen/include” -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c filedec7e4f5a8e.cpp -o filedec7e4f5a8e.o  
g++.exe: error: Files/R/R-4.0.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp: No such file or directory  
make: \*\*\* [C:/PROGRA~1/R/R-40~1.2/etc/x64/Makeconf:229: filedec7e4f5a8e.o] Error 1  
Error in file(con, “r”) : cannot open the connection  
In addition: Warning messages:  
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :  
‘C:/rtools40/usr/mingw\_/bin/g++’ not found  
2: In file(con, “r”) :  
cannot open file ‘filedec7e4f5a8e.cpp.err.txt’: No such file or directory

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [October 14, 2020, 12:04am UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/13 "2020-10-14T00:04:40Z")

</div>

Can you restart R and then run:

```
devtools::session_info("rstan")

```

And post the output?

---

<div class="post-metadata">

**Author:** ![akaat](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/akaat/32/9607_2.png) [@akaat](https://discourse.mc-stan.org/u/akaat)\
**Post date:** [October 14, 2020, 1:15am UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/14 "2020-10-14T01:15:11Z")

</div>

Below is the output requested.

However, I got it to run after I did some troubleshooting with the rlang package. It wanted to update to v0.4.8 from source, but when I did that it errored out. when I reverted to the binary version, it was successful.

Not sure why that mattered, but I got the idea when trying to install brms and it was erroring out on the rlang package.

Thanks,

> devtools::session\_info(“rstan”)

- Session info ---------------------------------------------------------------------------------------  
setting value  
version R version 4.0.2 (2020-06-22)  
os Windows 7 x64 SP 1  
system x86\_64, mingw32  
ui RStudio  
language (EN)  
collate English\_United States.1252  
ctype English\_United States.1252  
tz America/Chicago  
date 2020-10-13

- Packages -------------------------------------------------------------------------------------------  
package \* version date lib source  
assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.0)  
backports 1.1.10 2020-09-15 [1] CRAN (R 4.0.2)  
BH 1.72.0-3 2020-01-08 [1] CRAN (R 4.0.0)  
callr 3.4.3 2020-03-28 [1] CRAN (R 4.0.0)  
checkmate 2.0.0 2020-02-06 [1] CRAN (R 4.0.0)  
cli 2.0.2 2020-02-28 [1] CRAN (R 4.0.0)  
colorspace 1.4-1 2019-03-18 [1] CRAN (R 4.0.0)  
crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.0)  
curl 4.3 2019-12-02 [1] CRAN (R 4.0.0)  
desc 1.2.0 2018-05-01 [1] CRAN (R 4.0.0)  
digest 0.6.25 2020-02-23 [1] CRAN (R 4.0.0)  
ellipsis 0.3.1 2020-05-15 [1] CRAN (R 4.0.0)  
evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.0)  
fansi 0.4.1 2020-01-08 [1] CRAN (R 4.0.0)  
farver 2.0.3 2020-01-16 [1] CRAN (R 4.0.0)  
ggplot2 3.3.2 2020-06-19 [1] CRAN (R 4.0.2)  
glue 1.4.2 2020-08-27 [1] CRAN (R 4.0.2)  
gridExtra 2.3 2017-09-09 [1] CRAN (R 4.0.0)  
gtable 0.3.0 2019-03-25 [1] CRAN (R 4.0.0)  
inline 0.3.16 2020-09-06 [1] CRAN (R 4.0.2)  
isoband 0.2.2 2020-06-20 [1] CRAN (R 4.0.2)  
jsonlite 1.7.1 2020-09-07 [1] CRAN (R 4.0.2)  
labeling 0.3 2014-08-23 [1] CRAN (R 4.0.0)  
lattice 0.20-41 2020-04-02 [1] CRAN (R 4.0.2)  
lifecycle 0.2.0 2020-03-06 [1] CRAN (R 4.0.0)  
loo 2.3.1 2020-07-14 [1] CRAN (R 4.0.2)  
magrittr 1.5 2014-11-22 [1] CRAN (R 4.0.0)  
MASS 7.3-51.6 2020-04-26 [1] CRAN (R 4.0.0)  
Matrix 1.2-18 2019-11-27 [1] CRAN (R 4.0.2)  
matrixStats 0.57.0 2020-09-25 [1] CRAN (R 4.0.2)  
mgcv 1.8-31 2019-11-09 [1] CRAN (R 4.0.2)  
munsell 0.5.0 2018-06-12 [1] CRAN (R 4.0.0)  
nlme 3.1-148 2020-05-24 [1] CRAN (R 4.0.0)  
pillar 1.4.6 2020-07-10 [1] CRAN (R 4.0.2)  
pkgbuild 1.1.0 2020-07-13 [1] CRAN (R 4.0.2)  
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.0)  
pkgload 1.1.0 2020-05-29 [1] CRAN (R 4.0.0)  
praise 1.0.0 2015-08-11 [1] CRAN (R 4.0.0)  
prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.0.0)  
processx 3.4.4 2020-09-03 [1] CRAN (R 4.0.2)  
ps 1.4.0 2020-10-07 [1] CRAN (R 4.0.2)  
R6 2.4.1 2019-11-12 [1] CRAN (R 4.0.0)  
RColorBrewer 1.1-2 2014-12-07 [1] CRAN (R 4.0.0)  
Rcpp 1.0.5 2020-07-06 [1] CRAN (R 4.0.2)  
RcppEigen 0.3.3.7.0 2019-11-16 [1] CRAN (R 4.0.0)  
RcppParallel 5.0.2 2020-06-24 [1] CRAN (R 4.0.2)  
rlang 0.4.7 2020-07-09 [1] CRAN (R 4.0.2)  
rprojroot 1.3-2 2018-01-03 [1] CRAN (R 4.0.0)  
rstan 2.21.2 2020-07-27 [1] CRAN (R 4.0.2)  
rstudioapi 0.11 2020-02-07 [1] CRAN (R 4.0.0)  
scales 1.1.1 2020-05-11 [1] CRAN (R 4.0.0)  
StanHeaders 2.21.0-6 2020-08-16 [1] CRAN (R 4.0.2)  
testthat 2.3.2 2020-03-02 [1] CRAN (R 4.0.0)  
tibble 3.0.1 2020-04-20 [1] CRAN (R 4.0.0)  
utf8 1.1.4 2018-05-24 [1] CRAN (R 4.0.0)  
V8 3.2.0 2020-06-19 [1] CRAN (R 4.0.2)  
vctrs 0.3.4 2020-08-29 [1] CRAN (R 4.0.2)  
viridisLite 0.3.0 2018-02-01 [1] CRAN (R 4.0.0)  
withr 2.3.0 2020-09-22 [1] CRAN (R 4.0.2)

[1] C:/Program Files/R/R-4.0.2/library

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [October 14, 2020, 2:26am UTC](https://discourse.mc-stan.org/t/compilation-error-with-stanheaders-no-such-file-or-directory/13007/15 "2020-10-14T02:26:21Z")

</div>

Glad to hear it’s working! I’ll look into the latest version of `rlang` and see if there’s going to be an issue we need to take care of
