View source: R/dotNetAssembly.R
buildRawrrExe | R Documentation |
rawrr.exe
console application.builds rawrr.exe
file from C# source code requiring
.NET SDK. The console application rawrr.exe
is used by the package's reader functions through a system2 call
or a textConnection.
buildRawrrExe()
The rawrr package implementation consists of two language layers,
the top R layer and the hidden C# layer. Specifically, R functions requesting
access to data stored in binary raw files invoke compiled C# wrapper methods
using a system2 call. Calling a wrapper method typically results in the
execution of methods defined in the RawFileReader dynamic link library
provided by Thermo Fisher Scientific. Our precompiled wrapper methods are
bundled in the rawrr.exe
executable file (.NET assembly) and shipped
with the released R package.
Our package also contains the C# source code rawrr.cs
.
In order to return extracted data back to the R layer we use file I/O.
More specifically, the extracted information is written to a temporary
location on the harddrive, read back into memory and parsed into R objects.
the return value of the system2 command.
Tobias Kockmann, Christian Panse <cp@fgcz.ethz.ch>, 2021, 2024
https://www.mono-project.com/docs/advanced/assemblies-and-the-gac/, 2020
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/advanced
installRawrrExe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.