version 1.9, 2017/03/22 00:42:56 |
version 1.11, 2020/02/06 05:58:17 |
|
|
$OpenXM: OpenXM/src/R/r-packages/note.txt,v 1.8 2016/10/30 01:10:18 takayama Exp $ |
$OpenXM: OpenXM/src/R/r-packages/note.txt,v 1.10 2019/11/16 11:03:43 takayama Exp $ |
|
|
See also OpenXM/src/hgm/note.txt |
See also OpenXM/src/hgm/note.txt |
|
|
|
* R package build, reference pages. |
|
https://cran.r-project.org/bin/macosx/tools/ |
|
* Example |
|
Edit files in src/hgm |
|
cd R/r-packages |
|
make rsync |
|
R CMD INSTALL hgm |
|
Start R and library(hgm) |
|
hgm.ncso3() |
|
|
* C source codes. |
* C source codes. |
C sources and headers should be developed and edited in the directory |
C sources and headers should be developed and edited in the directory |
OpenXM/src/hgm in order to provide a standalone mode without R |
OpenXM/src/hgm in order to provide a standalone mode without R |
Line 99 http://kbroman.org/pkg_primer/pages/cran.html |
|
Line 109 http://kbroman.org/pkg_primer/pages/cran.html |
|
|
|
R CMD check hgm --as-cran |
R CMD check hgm --as-cran |
|
|
|
|
|
;; |
|
2020.02.06 Installing r-devel |
|
apt-get install subversion ccache |
|
apt-get install xorg-dev |
|
apt-get install libcurl4-openssl-dev |
|
pushd ~/this19/R (for example) |
|
svn co https://svn.r-project.org/R/trunk r-devel/R |
|
cd r-devel/R and follow the INSTALL |
|
./configure --without-recommended-packages --prefix ~/this19/R |
|
make |
|
export PATH=~/this19/R/r-devel/R/bin:$PATH |
|
|
|
|
|
Valgrid can be used by |
|
valgrind ./a.out |
|
A sample: main() { int n; if (n>0) n=0; } |
|
|