R语言获取当前R版本(version)实战
Posted Data+Science+Insight
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了R语言获取当前R版本(version)实战相关的知识,希望对你有一定的参考价值。
R语言获取当前R版本(version)实战
目录
#R.Version()函数
my_version <- R.Version()
# Execute R.Version function
my_version
# Print output
# $platform
# [1] "x86_64-w64-mingw32"
#
# $arch
# [1] "x86_64"
#
# $os
# [1] "mingw32"
#
# $system
# [1] "x86_64, mingw32"
#
# $status
# [1] ""
#
# $major
# [1] "3"
#
# $minor
# [1] "5.3"
#
# $year
# [1] "2019"
#
# $month
# [1] "03"
#
# $day
# [1] "11"
#
# $`svn rev`
# [1] "76217"
#
# $language
# [1] "R"
#
# $version.string
# [1] "R version 3.5.3 (2019-03-11)"
#
# $nickname
# [1] "Great Truth"
#$version.string抽取版本信息
my_version$version.string
# Extract certain parameters
# "R version 3.5.3 (2019-03-11)"
#R.version.string抽取版本信息
R.version.string
# Simplified copy of R.version$version.string
# "R version 3.5.3 (2019-03-11)"
#R.version
R.version
# Return currently used R version to console
# _
# platform x86_64-w64-mingw32
# arch x86_64
# os mingw32
# system x86_64, mingw32
# status
# major 3
# minor 5.3
# year 2019
# month 03
# day 11
# svn rev 76217
# language R
# version.string R version 3.5.3 (2019-03-11)
# nickname Great Truth
参考:R.Version Function in R (Examples) | Which Version is Currently Running?
参考:statisticsglobe.com
参考:R
以上是关于R语言获取当前R版本(version)实战的主要内容,如果未能解决你的问题,请参考以下文章
R语言当前目录获取及设置函数(getwd & setwd)实战
R语言实战英文书籍,配套源代码,帮助你学习R语言!(可下载)
R语言实战应用精讲50篇(二十八)-大量代码示例带你从基础到高级(附R语言代码)