You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+61-8
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,27 @@
4
4
5
5
Accessing the Common Language Runtime (.NET or Mono) from the R statistical software, in-process.
6
6
7
+
## Prerequisites
8
+
9
+
As of May 2019, on Windows Clr requires the .NET Framework (4.6.1+, 4.7.2+ recommended). Groundwork towards running on .NET Core started but it is unclear how to embed the .NET Core runtime into R.
10
+
11
+
As of September 2015 using Mono on Windows is not maintained.
12
+
7
13
## Installing
8
14
9
15
As of 2019-04, releases can be found via the [release tab of the rClr GitHub repository](https://github.com/jmp75/rClr/releases).
10
16
11
17
### Pre-compiled binaries
12
18
13
-
You can install pre-compiled rClr for Windows via [https://rclr.codeplex.com](https://rclr.codeplex.com). You can use from the command line `R CMD INSTALL rclr_0.8.zip` where `R` points to one of the R.exe installed on your machine, or from R itself `install.packages('c:/path/to/rclr_0.8.zip')`
19
+
You can install pre-compiled rClr for Windows via the [release tab of the rClr GitHub repository](https://github.com/jmp75/rClr/releases). May 2019 has binary packages for R 3.4 and 3.5.
20
+
21
+
`7z a rClr_windows_pkgs.7z` then `cd R_pkgs\bin\windows\contrib\3.5\` for R 3.5.x.
22
+
23
+
You can use from the command line `R CMD INSTALL rclr_0.8.zip` where `R` points to one of the R.exe installed on your machine, or from R itself `install.packages('c:/path/to/rclr_0.8.zip')`
14
24
15
25
### From source
16
26
17
-
If you want to compile from source note that you may be interested in using the [testing branch](https://github.com/jmp75/rClr/tree/testing).
27
+
If you want to compile from source, you may be interested in using the [testing branch](https://github.com/jmp75/rClr/tree/testing).
18
28
19
29
rClr is not your average R package and requires a few more tools than is typical for most R packages.
20
30
@@ -24,10 +34,17 @@ On Windows you will need a C# and C and/or Visual C++ compiler. Using the Visual
24
34
25
35
Under construction as of 2019-04:
26
36
37
+
You should work from the windows command prompt. I normally use and love ConEmu but for odd reasons the package install fails with `/Rtools/bin/sh: ./configure.win: No such file or directory`.
38
+
27
39
```bat
28
40
REM IMPORTANT to not have nuget.exe or other commands under c:\bin; RTools mingw cannot find these commands
29
41
set PATH=C:\cmd_bin;%PATH%
30
-
cd c:\src\github_jm
42
+
set SRC_ROOT=c:\src\github_jm
43
+
44
+
cd %SRC_ROOT%
45
+
rm rClr*.zip rClr*.tar.gz
46
+
47
+
set PKG_VERSION=0.8.3
31
48
```
32
49
33
50
Make sure we use a recent msbuild, otherwise there may be issues with targetting .NET netstandard2.0. `.\rClr\src\setup_vcpp.cmd` may help detect the most recent `msbuild.exe` you have if you have installed visual studio (unsure it works for Build Tools for Visual Studio). You can start a development prompt as a fallback if setup_vcpp fails to work on your machine.
@@ -37,19 +54,55 @@ REM https://github.com/jmp75/rClr/issues/42 may need to use VS2019
37
54
.\rClr\src\setup_vcpp.cmd
38
55
```
39
56
57
+
After that `where msbuild` returns e.g. `C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe`
58
+
59
+
Optionally to `roxygenize` the package, launch R but from the same command prompt e.g.:
0 commit comments