stan-dev / stan-dev/rstan

Rtools Issues

Open
#498 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.1k
Forks
266
Avg merge
2h 56m
Merged PRs (30d)
1

Description

Summary:

Trying to download Rtools so I can use rstan, and I need help troubleshooting.

Description:

Hello,

I'm trying to get Rtools34.exe to play nice with Rstudio 1.1.423 on a Windows 10, and I'm not succeeding.

According to the instructions on https://github.com/stan-dev/rstan/wiki/Install-Rtools-for-Windows, I'm supposed to check a box when I get to the "Select Additional Tasks" prompt. However, I don't have the same options as the one depicted in the help page. My choices under "Edit Path" are "Current value: PATH = ... " or "Save version information to registry". If I click on the former, then I have the option to edit the path, and the default path is:

c:\Rtools\bin;
c:\Rtools\mingw_32\bin;
%SystemRoot%\system32;
%SystemRoot%;
%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

Since I don't have a lot of experience with this, I left it as it was.

In Rstudio, I entered Sys.getenv('Path') and my output is:
[1] "C:\Rtools\bin;C:\Program Files\R\R-3.4.3\bin\x64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\tthalhuber\AppData\Local\Microsoft\WindowsApps;"

I then tried system('g++ -v') and I get:
Warning message:
running command 'g++ -v' had status 127

From what I've seen from other posts, it looks like my path is having a hard time finding the C++ compiler. I'm not sure where to go from here, so I was wondering if anyone had suggestions.

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue mentions Rtools34.exe, RStudio 1.1.423, Windows 10, and the R commands Sys.getenv('Path') and system('g++ -v'), but no repository file or test. Start by reviewing the linked Rtools installation instructions; done would require a resolved compiler setup, not a clearly scoped repository change.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.