=================================================================== RCS file: /home/cvs/OpenXM/src/R/r-packages/note.txt,v retrieving revision 1.8 retrieving revision 1.12 diff -u -p -r1.8 -r1.12 --- OpenXM/src/R/r-packages/note.txt 2016/10/30 01:10:18 1.8 +++ OpenXM/src/R/r-packages/note.txt 2022/04/06 01:03:42 1.12 @@ -1,7 +1,22 @@ -$OpenXM: OpenXM/src/R/r-packages/note.txt,v 1.7 2016/10/28 02:27:39 takayama Exp $ +$OpenXM: OpenXM/src/R/r-packages/note.txt,v 1.11 2020/02/06 05:58:17 takayama Exp $ 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() + + ??hgm + ?hgm.ncorthant + + remove.packages('hgm') + * C source codes. C sources and headers should be developed and edited in the directory OpenXM/src/hgm in order to provide a standalone mode without R @@ -28,7 +43,7 @@ See also OpenXM/src/hgm/note.txt R CMD INSTALL hgm R library(hgm) - You can check hgm.so3nc by hand. + You can check hgm.ncso3 by hand. R CMD REMOVE hgm It is used to remove the test library. @@ -39,6 +54,10 @@ See also OpenXM/src/hgm/note.txt or R CMD build --binary hgm (perhaps, obsolete style) +(5) make copy-web-hgm + hgm_x.yz.tar.gz + [cran submit package] search ==> http://cran.r-project.org/submit.html + * Notes. library.dynam() shows a list of shared libraries loaded. dyn.load("hgm.so") can be used to load shared library by hand. @@ -95,4 +114,22 @@ http://kbroman.org/pkg_primer/pages/cran.html 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 + apt install libpcre2-dev (2022.04.06 this22/R orange3m) + 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; }