-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple issues with expose_stan_functions. #458
Comments
We went back to the old |
To misquote Lenin: thinking is good, testing is better
|
Using your #422 a.stan is your Fibonacci-Example code put in a file. For reasons why not used directly, see original post Windows:
Ubuntu
|
@dmenne you also need the matching rstan branch (currently a PR on rstan). |
So this is not enough? devtools::install_github("stan-dev/rstan/rstan/rstan@feature/issue-422-standalone-functions-k") |
I'm not sure what's going on with this, please try this:
The first file is the c++ generated by Stan and the second is the c++ generated by Rcpp, without those troubleshooting is sort of hopeless. |
@dmenne so locally with both branches correctly installed:
Gets me this in the terminal:
I think you're having an installation problem. So try reinstalling StanHeaders and then reinstalling rstan itself. We may need @bgoodri for help with this |
Does the example from the documentation of expose_stan_functions run ok on your installation ? |
You may need to pull my latest push to develop to get that example to work
with the master branches of Stan and Stan Math.
…On Tue, Oct 17, 2017 at 1:22 PM, Dieter Menne ***@***.***> wrote:
Does the example from the documentation of expose_stan_functions run ok on
your installation ?
The Windows-Version <http://menne-biomed.de/uni/issue_458_menne.zip>
The ubuntu-Version <http://menne-biomed.de/uni/issue_458_menne_ubuntu.zip>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#458 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqpml0icomijElqCpARMjDJJZ_8Srks5stOJSgaJpZM4P0WGz>
.
|
Strange. I work with RStan every day and have a current package on CRAN with it (breathteststan), so the installation cannot be totally foobar; and Ubuntu runs on an external Web server totally idependently.+ I re-installed StanHeader, but only from CRAN 2.16.0-1. No change. But maybe I have to get a github version? Which one? |
Rstan needs to be reinstalled after stanheaders to pick up the right code.
Also how about those c++ files that could actually tell us what's wrong?
…On Tue, Oct 17, 2017, 1:51 PM bgoodri ***@***.***> wrote:
You may need to pull my latest push to develop to get that example to work
with the master branches of Stan and Stan Math.
On Tue, Oct 17, 2017 at 1:22 PM, Dieter Menne ***@***.***>
wrote:
> Does the example from the documentation of expose_stan_functions run ok
on
> your installation ?
>
> The Windows-Version <http://menne-biomed.de/uni/issue_458_menne.zip>
> The ubuntu-Version <
http://menne-biomed.de/uni/issue_458_menne_ubuntu.zip>
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#458 (comment)>,
or mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/ADOrqpml0icomijElqCpARMjDJJZ_8Srks5stOJSgaJpZM4P0WGz
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#458 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAfA6YGjk-iHn_e0IztfGrw9LfneqqbMks5stOfygaJpZM4P0WGz>
.
|
Bingo! fibonacci(10) Even works with the example in the docs! Thanks and over. Sorry about my impatience I needed this for a pending release of breathteststan |
@sakrejda Sorry, I just deleted them on my server, because I thought the issure was resolved. You still need them? Just recovered them. Have to go not yet checked. |
Summary:
Multiple issues with expose_stan_functions. This is a summary of
http://discourse.mc-stan.org/t/error-expose-stan-functions/2119/6
Description:
Reproducible Steps:
Your version works when the filename is given (checked), but does does not retrieve the mc-string you use in the example. Alternatively, remove the example in the documentation.
Something like this, probably
– Put fibonacci example in the documentation in a file “a.stan” (since passing text currently fails)
RStan Version:
rstan * 2.17.1 2017-09-21 Github (39f9c1a)
R Version:
Operating System:
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
The text was updated successfully, but these errors were encountered: