# Help Needed - Error when compiling stancode

**URL:** <https://discourse.mc-stan.org/t/help-needed-error-when-compiling-stancode/24418>\
**Category:** RStan\
**Created:** [September 15, 2021, 2:47am UTC](https://discourse.mc-stan.org/t/help-needed-error-when-compiling-stancode/24418 "2021-09-15T02:47:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [September 16, 2021, 1:26am UTC](https://discourse.mc-stan.org/t/help-needed-error-when-compiling-stancode/24418/5 "2021-09-16T01:26:59Z")

</div>

Ah yes, this is likely to be the issue: `\fnyipw01\HOB_FID_Home\ga`

That indicates that your R package library is located on a network drive, not somewhere locally on your computer. When this is the case, R can have troubles loading compilation dependencies from installed packages.

To resolve this, you need to move your package library to somewhere on your local computer. If you’re not sure how to do this, I wrote some instructions in a previous post, you’ll just need to change the target directory: [Modeling failed Warnings: 'C:/Users/R-34~1.3/rtools40/usr/mingw\_/bin/g++' not found Errors: Multiple results for CXX14FLAGS found, something is wrong.FALSE - #54 by andrjohns](https://discourse.mc-stan.org/t/modeling-failed-warnings-c-users-r-34-1-3-rtools40-usr-mingw-bin-g-not-found-errors-multiple-results-for-cxx14flags-found-something-is-wrong-false/19154/54)

---

_[View the full topic](https://discourse.mc-stan.org/t/help-needed-error-when-compiling-stancode/24418)._
