there is something i want to do
実行中のRのバージョン情報を取得する
Rのスクリプト内でRのバー所運を取得する
Syntax
Syntax
R.Version()
R.version
R.version.string
R.version$os
Comment
Comment
VersionのVは大文字と、小文字で異なる関数、コマンドになる。
Example
> > R.Version() $platform [1] "x86_64-pc-linux-gnu" $arch [1] "x86_64" $os [1] "linux-gnu" $system [1] "x86_64, linux-gnu" $status [1] "" $major [1] "3" $minor [1] "3.1" $year [1] "2016" $month [1] "06" $day [1] "21" $`svn rev` [1] "70800" $language [1] "R" $version.string [1] "R version 3.3.1 (2016-06-21)" $nickname [1] "Bug in Your Hair" > Rversion<-R.Version() > Rversion[2] $arch [1] "x86_64" > > R.version _ platform x86_64-pc-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 3 minor 3.1 year 2016 month 06 day 21 svn rev 70800 language R version.string R version 3.3.1 (2016-06-21) nickname Bug in Your Hair > > R.version$arch [1] "x86_64" > > R.version.string [1] "R version 3.3.1 (2016-06-21)" > >