buildRawrrExe {rawrr} | R Documentation

## Build `rawrr.exe` console application.

### Description

builds `rawrr.exe` file from C# source code requiring xbuild or msbuild tools. The console application `rawrr.exe` is used by the package's reader functions through a system2 call.

### Usage

    buildRawrrExe()

### Details

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. Running `rawrr.exe` requires the https://www.mono-project.com/ environment on non-Microsoft operating systems. Mono is a cross platform, open source .NET framework. On Microsoft Windows the Microsoft .NET framework is typically already installed and sufficient. 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.

### Value

the return value of the system2 command.

### Author(s)

Tobias Kockmann, Christian Panse <cp@fgcz.ethz.ch>, 2021

### References

- https://www.mono-project.com/docs/advanced/assemblies-and-the-gac/

- https://planetorbitrap.com/rawfilereader

- https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/advanced

- doi: 10.1021/acs.jproteome.0c00866

### See Also

installRawrrExe and installRawFileReaderDLLs

[Package rawrr version 1.2.0 Index]