Use getVersion() to determine the current version of RStudio. This can be useful for R packages which need to gate certain functionality based on the version of RStudio currently available.

getVersion()

Value

A "numeric_version" object, giving the version of RStudio in use.