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

{{.locale.Tr "packages.installation"}}

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

{{.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}}

{{.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}}