-
Notifications
You must be signed in to change notification settings - Fork 22
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
Adding installation instructions for Windows #74
Conversation
I tried out the instructions. When I get to I think this error is due to
in the MYS2 shell - this works as above, but if you replace The wider problem is that when running However, that doesn't solve the problem. The configure script then gets stuck because it can't find readline; if I run with option Looking again at https://cran.r-project.org/bin/windows/base/howto-R-4.2.html, those instructions do not use the configure script on Windows. I was able to build R successfully by following the instructions there to build directly in the So I think the bottom line is we shouldn't be using the configure script for Windows. We don't need to use the |
02-getting_started.Rmd
Outdated
|
||
To build R for Windows using `RTools` follow the instructions in this [README](https://github.com/r-windows/r-base#readme) file. There are two options available to build R. One is the quick development build and the other option is the full installer build. | ||
1. [RTools](https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html) is the toolchain bundle that you can use to build R base and R packages containing compiled code, on Windows. | ||
They can be downloaded from [their own page](https://cran.r-project.org/bin/windows/Rtools/rtools42/files/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit confusing. For the purpose here, people just need the RTools42 installer (the rtools42-XXXX-XXXX.exe file).
02-getting_started.Rmd
Outdated
|
||
For development and testing, you need only the quick development build. The quick build avoids building the manuals, which are generally not needed for development and testing. | ||
2. You also need a distribution of LaTeX installed for building R and checking packages. | ||
The MiKTeX distribution of LaTeX that is used on CRAN can be downloaded from <https://miktex.org>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should recommend this more strongly - even if people already have LaTeX via TinyTex, I think it will be easier for them to install MikTeX so that any required packages are installed on the fly.
02-getting_started.Rmd
Outdated
1. Open the Rtools42 terminal, and update and get the tools: | ||
|
||
pacman -Syuu | ||
pacman -Sy wget subversion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably don't need subversion here if we are using TortoiseSVN or SlikSVN. I think it is helpful to recommend people install Subversion outside of the MSYS shell, so that it can be found more easily by other tools, e.g. RStudio.
Many thanks as always for helping me solve this problem! I'll try to build it on Sunday, but when you said you were able to " to build R successfully " do you mean just running I have MikTeX installed on that computer, and LiveTeX which provides the |
Not quite, the make has different targets (
I think |
Just notes for myself before writing it and anyone following through. I can confirm this src/gnuwin32 works. But so far I used texlive as the pdflatex provider (in /c/texlive/2022/bin/win32/). When I opened the miketex, via the windows start menu, it asked me to check for updates and make it available in the PATH. I think it might be worth it to mention that one needs to open it and follow the recommendations then it would find the pdflatex file. Also, I was surprised because RStudio wanted to select a folder with the R installation not the R.exe as I expected. This might be me not reading well the butttons in addition of lack of fmailiariy with windows programs. |
This way the command can be directly copied and used
I was able to build and check successfully R from source in windows with MiKTeX, the program was installed just for the user in /c/Users/$USER/AppData/Local/Programs/MiKTeX/miktex/bin/x64. I still need to check if |
I updated the branch to (hopefully) resolve all the comments. I moved all the prerequisites to their own section. I kept the svn installation inside MSYS to keep in line with other installation instructions but I mention there SlikSVN and TortoiseSVN. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I neither have a Win machine available, nor have I ever tried building anything on that platform, so I can't give much feedback on content. I tried to improve some language issues, but feel free to ignore comments you don't see as improvements.
Co-authored-by: nbenn <3158446+nbenn@users.noreply.github.com>
No major comments from me, so I merged this in to enable people to review the new section in a clean state. |
This PR adds the instructions for windows, both binaries and from source.
Lately I cannot configure R from source in the windows but following this should be possible.
If someone could confirm or report any problem on this instructions I would appreciate and update the instructions.
This should be rebased and merged after #65