mdsumner / rmdal0

1 stars 0 forks source link

Travis build
statusAppVeyor
build
status

rmdal0

An attempt, minimal proof of concept for an R package using the MDAL library.

See also https://github.com/lutraconsulting/MDAL/issues/42 which I will speak to once I get some functionality working.

setup MDAL

git clone https://github.com/lutraconsulting/MDAL.git
cd MDAL
mkdir build;cd build
## DONE AS ROOT, BECAUSE otherwise fail for some reason
cmake -DCMAKE_BUILD_TYPE=Rel -DENABLE_TESTS=ON  ..
make
make all install

Run the init thing for the C++ in this package:

tools::package_native_routine_registration_skeleton("../rmdal0", "src/init.c",character_only = FALSE)

Run the package, currently only calls MDAL_Status() as a minimal test.

All going well it should return the value 2 and print out “mdalinfo 0”.

rmdal0:::rmdal0()
#> mdalinfo 0
#> [1] 2

Please note that the ‘rmdal0’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.