CRAN
Check CRAN packages provided by Fink. Please note that many cran packaged named r-cran-packagename packages are OBSOLETE. Use cran-packagename-rversion. The below packages will be installed automatically.
Fink で提供する CRAN パッケージ をご覧ください。 註: r-cran-packagename という名前のパッケージは、古いものが多いです。 cran-packagename-rversion という名前のパッケージをお使いください。 下記のパッケージは自動的にインストールされます。
- KernSmoot
- MASS
- Matrix
- base
- boot
- class
- cluster
- codetools
- compiler
- datasets
- foreign
- grDevices
- graphics
- grid
- lattice
- methods
- nlme
- nnet
- parallel
- rpart
- spatial
- splines
- stats
- stats4
- survival
- tcltk
- tools
- translati
- utils
X11 pacakges
Why Fink?
Why do I have to install CRAN packages with Fink? Why not install.packages? Because Fink's packages explicitly link to specific libraries to prevent future problems.
See below. rgdal explicitly depends on specific versions of gdal, proj, libintl as well as R 3.1.
なぜ Fink?
なぜ、CRAN パッケージを Fink でインストールするのか?なぜ install.packages を使わないのか? Fink のパッケージは、問題を未然に防ぐために特定のライブラリに明示的にリンクしているからです。
下記をごらんください。 rgdal は、gdal, proj, libintl の特定のバージョン、さらには R 3.1 に明示的にリンクされています。
$ otool -L /sw/lib/R/3.1/site-library/rgdal/libs/rgdal.dylib /sw/lib/R/3.1/site-library/rgdal/libs/rgdal.dylib: /sw/lib/R/3.1/site-library/rgdal/libs/rgdal.dylib (compatibility version 0.0.0, current version 0.0.0) /sw/lib/libgdal.1.dylib (compatibility version 20.0.0, current version 20.0.0) /sw/lib/libproj.0.dylib (compatibility version 7.0.0, current version 7.6.0) /sw/Library/Frameworks/R.framework/Versions/3.1/Resources/lib/libR.dylib (compatibility version 3.1.0, current version 3.1.0) /sw/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.16.0) /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
.info Template
Below is a template for creating CRAN packages on Fink. To create a package, replace PACKAGENAME with the actual name, fill the missing fields and save in /sw/fink/dists/local/main/finkinfo.
下記は Fink 上で CRAN パッケージを作成するためのテンプレートです。 パッケージを作成するには、PACKAGENAME を実際の名前に変え、空欄を埋め、/sw/fink/dists/local/main/finkinfo に保存してください。
Info2: << Package: cran-PACKAGENAME-r%type_pkg[rversion] Type: rversion (3.1 3.0 2.15) Version: Revision: Description: Homepage: http://cran.r-project.org/web/packages/PACKAGENAME/index.html License: Maintainer: Source: http://cran.r-project.org/src/contrib/Archive/PACKAGENAME/PACKAGENAME_%v.tar.gz Source-MD5: SourceDirectory: PACKAGENAME Depends: r-base%type_pkg[rversion] BuildDepends: r-base%type_pkg[rversion]-dev CompileScript: << #!/bin/sh -ev export TMPDIR=%b/tmp BIN_R=%p/Library/Frameworks/R.framework/Versions/%type_raw[rversion]/Resources/bin/R pushd .. if [[ %type_raw[rversion] > 2.15 ]]; then $BIN_R --verbose CMD build --no-build-vignettes PACKAGENAME else $BIN_R --verbose CMD build --no-vignettes PACKAGENAME fi << InstallScript: << #!/bin/sh -ev BIN_R=%p/Library/Frameworks/R.framework/Versions/%type_raw[rversion]/Resources/bin/R mkdir -p %i/lib/R/%type_raw[rversion]/site-library pushd %b/.. && $BIN_R --verbose CMD install --library=%i/lib/R/%type_raw[rversion]/site-library PACKAGENAME install_name_tool -id %p/lib/R/%type_raw[rversion]/site-library/PACKAGENAME/libs/PACKAGENAME.dylib %i/lib/R/%type_raw[rversion]/site-library/PACKAGENAME/libs/PACKAGENAME.dylib << Shlibs: << %p/lib/R/%type_raw[rversion]/site-library/sp/libs/PACKAGENAME.dylib 0.0.0 %n (>=0.0-0) << SplitOff: << Package: %N-dev Description: Headers for CRAN PACKAGENAME BuildDependsOnly: true Depends: %N (=%v-%r) Files: lib/R/%type_raw[rversion]/site-library/PACKAGENAME/include << <<