ccubes-cl/README.md

29 lines
502 B
Markdown
Raw Normal View History

2025-03-26 15:16:25 +02:00
BUILD
-----
2025-03-26 13:21:25 +00:00
```shell
2025-03-26 15:16:25 +02:00
cd ${HOME}
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/opt/gurobi1200/linux64/lib
2025-03-28 19:15:10 +02:00
R CMD build IEEE
2025-03-26 15:16:25 +02:00
R CMD INSTALL IEEE_1.0.0.tar.gz
2025-03-26 13:21:25 +00:00
```
2025-03-26 15:16:25 +02:00
TEST
----
2025-03-26 13:21:25 +00:00
From R do:
```R
library(IEEE)
compare(1,20,30,file="R-log.txt")
```
2025-03-28 19:15:10 +02:00
or directly in the terminal:
```shell
Rscript -e 'IEEE::compare(1,20,30,file="R-log.txt")'
```
2025-03-26 13:21:25 +00:00
with expected output:
```shell
2025-03-26 15:16:25 +02:00
$ cat R-log.txt
1, 20, 30, 0.006, 0.357, "(!N&!P&!R) + (J&O&!S) + (B&!H&!Q) + (J&Q)", "(J&Q) + (!A&B&!O) + (F&O&!Q)", 3332, 233
2025-03-26 13:21:25 +00:00
```