Skip to main content

R

Whatโ€‹

Display the currently active R version.

Sample Configurationโ€‹

{
"type": "r",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "blue",
"background": "lightWhite",
"template": " R {{ .Full }} "
}

Propertiesโ€‹

NameTypeDescription
home_enabledbooleandisplay the segment in the HOME folder or not - defaults to false
fetch_versionbooleandisplay the R version - defaults to true
missing_command_textstringtext to display when the command is missing - defaults to empty
display_modestring
  • always: the segment is always displayed
  • files: the segment is only displayed when one of the following files is present (default):
    • *.R
    • *.Rmd
    • *.Rsx
    • *.Rda
    • *.Rd
    • *.Rproj
    • .Rproj.user
version_url_templatestringa go text/template template that creates the URL of the version info / release notes

Template (info)โ€‹

default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}

Propertiesโ€‹

NameTypeDescription
.Fullstringthe full version
.Majorstringmajor number
.Minorstringminor number
.Patchstringpatch number
.URLstringURL of the version info / release notes
.Errorstringerror encountered when fetching the version string