{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/rstan/issues/592","repository_url":"https://api.github.com/repos/stan-dev/rstan","labels_url":"https://api.github.com/repos/stan-dev/rstan/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/rstan/issues/592/comments","events_url":"https://api.github.com/repos/stan-dev/rstan/issues/592/events","html_url":"https://github.com/stan-dev/rstan/issues/592","id":387085301,"node_id":"MDU6SXNzdWUzODcwODUzMDE=","number":592,"title":"RStan on Windows with_build_tools problem","user":{"login":"Paul-Yuchao-Dong","id":7532271,"node_id":"MDQ6VXNlcjc1MzIyNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/7532271?v=4","gravatar_id":"","url":"https://api.github.com/users/Paul-Yuchao-Dong","html_url":"https://github.com/Paul-Yuchao-Dong","followers_url":"https://api.github.com/users/Paul-Yuchao-Dong/followers","following_url":"https://api.github.com/users/Paul-Yuchao-Dong/following{/other_user}","gists_url":"https://api.github.com/users/Paul-Yuchao-Dong/gists{/gist_id}","starred_url":"https://api.github.com/users/Paul-Yuchao-Dong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paul-Yuchao-Dong/subscriptions","organizations_url":"https://api.github.com/users/Paul-Yuchao-Dong/orgs","repos_url":"https://api.github.com/users/Paul-Yuchao-Dong/repos","events_url":"https://api.github.com/users/Paul-Yuchao-Dong/events{/privacy}","received_events_url":"https://api.github.com/users/Paul-Yuchao-Dong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-04T01:58:13Z","updated_at":"2018-12-04T05:56:58Z","closed_at":null,"author_association":"NONE","body":"#### Summary:\r\n\r\nAfter many times of re-installation, I think I finally narrowed it down to the pkgbuild package.\r\n\r\n#### Description:\r\nRun into problems when trying to compile stan model with RStan on windows, installation test passed but ran into problem with with_build_tools from pkgbuild package.\r\n\r\nI ran into this problem trying to follow along the stan con tutorial [StanCon2018 Helsinki Tutorial](https://github.com/jgabry/stancon2018helsinki_intro)\r\n\r\nafter crawling thru the issues I noted [this issue](https://github.com/stan-dev/rstan/issues/586) which resonates most.\r\n\r\nAlso I don't know if this is relavant - I also installed anaconda in my system, which may have changed some environment variables and leads to the wrong compiler being used. I have limited knowledge but I am defintely willing to try all the tests. \r\n\r\n#### Reproducible Steps:\r\n```\r\nlibrary(rstan)\r\nlibrary(inline)\r\nfx <- cxxfunction( signature(x = \"integer\", y = \"numeric\" ) , '\r\n\treturn ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;\r\n' )\r\nfx( 2L, 5 )\r\n```\r\ngave the right output.\r\n\r\nbut \r\n```\r\nlibrary(pkgbuild)\r\nfx <- with_build_tools(\r\n  cxxfunction( signature(x = \"integer\", y = \"numeric\" ) , '\r\n\treturn ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) ;\r\n' ))\r\nfx( 2L, 5 )\r\n```\r\ngave an error of `Error in eval(substitute(expr), data, enclos = parent.frame()) : is.character(repos) is not TRUE`\r\n\r\n#### Current Output:\r\ngave an error of `Error in eval(substitute(expr), data, enclos = parent.frame()) : is.character(repos) is not TRUE`\r\n\r\n\r\n#### Expected Output:\r\n`[1] 10`\r\n\r\n\r\n#### RStan Version:\r\nThe version of RStan you are running (e.g., from `packageVersion(\"rstan\")`)\r\n2.18.2\r\n#### R Version:\r\nThe version of R you are running (e.g., from `R.version.string`)\r\n[1] \"R version 3.5.1 (2018-07-02)\"\r\n#### Operating System:\r\nYour operating system (e.g., OS X 10.11.3)\r\nWindows 7 64 bit"},"comment":{"url":"https://api.github.com/repos/stan-dev/rstan/issues/comments/443981238","html_url":"https://github.com/stan-dev/rstan/issues/592#issuecomment-443981238","issue_url":"https://api.github.com/repos/stan-dev/rstan/issues/592","id":443981238,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzk4MTIzOA==","user":{"login":"bgoodri","id":3386282,"node_id":"MDQ6VXNlcjMzODYyODI=","avatar_url":"https://avatars2.githubusercontent.com/u/3386282?v=4","gravatar_id":"","url":"https://api.github.com/users/bgoodri","html_url":"https://github.com/bgoodri","followers_url":"https://api.github.com/users/bgoodri/followers","following_url":"https://api.github.com/users/bgoodri/following{/other_user}","gists_url":"https://api.github.com/users/bgoodri/gists{/gist_id}","starred_url":"https://api.github.com/users/bgoodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgoodri/subscriptions","organizations_url":"https://api.github.com/users/bgoodri/orgs","repos_url":"https://api.github.com/users/bgoodri/repos","events_url":"https://api.github.com/users/bgoodri/events{/privacy}","received_events_url":"https://api.github.com/users/bgoodri/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T05:56:58Z","updated_at":"2018-12-04T05:56:58Z","author_association":"CONTRIBUTOR","body":"I believe you are running into the same problem as https://github.com/r-lib/callr/issues/85 in which case try setting `options(repos = ?)` to a character vector rather than a list. Or install the latest **callr** from GitHub."}}
{"actor":{"display_login":"bgoodri"}}