Skip to content

Commit e515b93

Browse files
committed
Candidate for release 0.8.3
1 parent 7591446 commit e515b93

File tree

6 files changed

+73
-17
lines changed

6 files changed

+73
-17
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: rClr
22
Type: Package
33
Title: Accessing the Common Language Runtime (.NET/Mono) from R
4-
Version: 0.8.2
5-
Date: 2019-04-09
4+
Version: 0.8.3
5+
Date: 2019-05-09
66
Authors@R: c( person("Jean-Michel", "Perraud", email =
77
"[email protected]", role = c("aut", "cre")))
88
Author: Jean-Michel Perraud [aut, cre], Kosei Abe, [aut] (R.NET), Nigel

R/rClr-package.r

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#' \tabular{ll}{
77
#' Package: \tab rClr\cr
88
#' Type: \tab Package\cr
9-
#' Version: \tab 0.8.2\cr
10-
#' Notes: \tab preview release - Target netstandard2.0. Work on R 3.5.x, which has significant changes under the hood \cr
11-
#' Date: \tab 2019-04-09\cr
9+
#' Version: \tab 0.8.3\cr
10+
#' Notes: \tab Works with R 3.5.x series. .NET code targets netstandard2.0.\cr
11+
#' Date: \tab 2019-05-09\cr
1212
#' License: \tab LGPL 3\cr
1313
#' }
1414
#'
@@ -18,6 +18,7 @@
1818
#'
1919
#' \tabular{lll}{
2020
#' Version \tab Date \tab Notes \cr
21+
#' 0.8.2: \tab 2019-04-09 \tab preview release - work on R 3.5.x, which has significant changes under the hood. \cr
2122
#' 0.8.1: \tab 2019-04-08 \tab preview release - work on R 3.5.x, which has significant changes under the hood. \cr
2223
#' 0.8.0: \tab 2015-11-01 \tab Tidy up build process and upgrade to latest recommended practices, notably with testthat. \cr
2324
#' 0.7-9: \tab 2015-08-30 \tab allow compilation against boehm and SGen versions of mono lib. minor build improvements. \cr

README.md

+61-8
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,27 @@
44

55
Accessing the Common Language Runtime (.NET or Mono) from the R statistical software, in-process.
66

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+
713
## Installing
814

915
As of 2019-04, releases can be found via the [release tab of the rClr GitHub repository](https://github.com/jmp75/rClr/releases).
1016

1117
### Pre-compiled binaries
1218

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')`
1424

1525
### From source
1626

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).
1828

1929
rClr is not your average R package and requires a few more tools than is typical for most R packages.
2030

@@ -24,10 +34,17 @@ On Windows you will need a C# and C and/or Visual C++ compiler. Using the Visual
2434

2535
Under construction as of 2019-04:
2636

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+
2739
```bat
2840
REM IMPORTANT to not have nuget.exe or other commands under c:\bin; RTools mingw cannot find these commands
2941
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
3148
```
3249

3350
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
3754
.\rClr\src\setup_vcpp.cmd
3855
```
3956

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.:
60+
61+
```bat
62+
Rgui.bat
63+
```
64+
65+
```R
66+
library(devtools)
67+
install_github("jmp75/rclr-devtools/packages/rClrDevtools")
68+
library(rClrDevtools) # https://github.com/jmp75/rClr-devtools
69+
roxyRclr('c:/src/github_jm/rClr')
70+
```
71+
72+
back to windows cmd, to build the tarball:
73+
4074
```bat
4175
set R_EXE="c:\Program Files\R\R-3.5.2\bin\x64\R.exe"
4276
set R_VANILLA=%R_EXE% --no-save --no-restore-data
4377
%R_VANILLA% CMD build rClr
44-
%R_VANILLA% CMD INSTALL --build rClr_0.8.2.tar.gz
78+
```
79+
80+
```bat
81+
set R_REPO_DIR=c:\build\software\R_pkgs\
82+
```
4583

84+
```bat
85+
set R_WINBIN_REPO_DIR=%R_REPO_DIR%bin\windows\contrib\3.5\
86+
if not exist %R_WINBIN_REPO_DIR% mkdir %R_WINBIN_REPO_DIR%
87+
cd %R_WINBIN_REPO_DIR%
88+
rm *
89+
%R_VANILLA% CMD INSTALL --build %SRC_ROOT%\rClr_%PKG_VERSION%.tar.gz
90+
```
91+
92+
and to build for R 3.4:
93+
94+
```bat
95+
set R_WINBIN_REPO_DIR=%R_REPO_DIR%bin\windows\contrib\3.4\
96+
if not exist %R_WINBIN_REPO_DIR% mkdir %R_WINBIN_REPO_DIR%
4697
set R_EXE="c:\Program Files\R\R-3.4.4\bin\x64\R.exe"
4798
set R_VANILLA=%R_EXE% --no-save --no-restore-data
48-
REM %R_VANILLA% CMD build rClr
49-
%R_VANILLA% CMD INSTALL --build rClr_0.8.2.tar.gz
50-
```
99+
cd %R_WINBIN_REPO_DIR%
100+
rm *
101+
%R_VANILLA% CMD INSTALL --build %SRC_ROOT%\rClr_%PKG_VERSION%.tar.gz
51102
52-
Note that as of September 2015 using Mono on Windows is not maintained.
103+
cd %R_REPO_DIR%..
104+
7z a rClr_windows_pkgs.7z R_pkgs
105+
```
53106

54107
#### Linux
55108

man/rClr-package.Rd

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ClrFacade/ClrFacade.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
2222
</PropertyGroup>
2323
<ItemGroup>
24-
<PackageReference Include="R.NET" Version="1.8.0-alpha1" />
24+
<PackageReference Include="R.NET" Version="1.8.1" />
2525
</ItemGroup>
2626
</Project>

vignettes/rclr_techdoc.Rmd

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Build process
2121
----------------------------
2222

2323
## .Rd file documentation
24+
2425
```{r, eval=FALSE}
2526
library(devtools)
2627
install_github("jmp75/rclr-devtools/packages/rClrDevtools")

0 commit comments

Comments
 (0)