{{if eq .PackageDescriptor.Package.Type "cran"}}

{{ctx.Locale.Tr "packages.installation"}}

options("repos" = c(getOption("repos"), c(gitea="")))
install.packages("{{.PackageDescriptor.Package.Name}}")
{{if or .PackageDescriptor.Metadata.Description .PackageDescriptor.Metadata.Title}}

{{ctx.Locale.Tr "packages.about"}}

{{if .PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Description}}{{.PackageDescriptor.Metadata.Title}}{{else}}{{end}}
{{end}} {{if or .PackageDescriptor.Metadata.Imports .PackageDescriptor.Metadata.Depends .PackageDescriptor.Metadata.LinkingTo .PackageDescriptor.Metadata.Suggests}}

{{ctx.Locale.Tr "packages.dependencies"}}

{{if .PackageDescriptor.Metadata.Imports}} {{end}} {{if .PackageDescriptor.Metadata.Depends}} {{end}} {{if .PackageDescriptor.Metadata.LinkingTo}} {{end}} {{if .PackageDescriptor.Metadata.Suggests}} {{end}}
Imports {{StringUtils.Join .PackageDescriptor.Metadata.Imports ", "}}
Depends {{StringUtils.Join .PackageDescriptor.Metadata.Depends ", "}}
LinkingTo {{StringUtils.Join .PackageDescriptor.Metadata.LinkingTo ", "}}
Suggests {{StringUtils.Join .PackageDescriptor.Metadata.Suggests ", "}}
{{end}} {{end}}