version 1.9, 2017/03/22 00:42:56 |
version 1.13, 2022/04/07 00:56:44 |
|
|
$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.12 2022/04/06 01:03:42 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() |
|
|
|
??hgm |
|
?hgm.ncorthant |
|
|
|
remove.packages('hgm') |
|
|
* 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 114 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 |
|
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 |
|
--> export PATH=~/this22/R/r-devel/R/bin:$PATH on orange3m (2022.04.06) |
|
|
|
|
|
Valgrid can be used by |
|
valgrind ./a.out |
|
A sample: main() { int n; if (n>0) n=0; } |
|
|