github.com/anchore/syft@v1.38.2/syft/pkg/r.go (about) 1 package pkg 2 3 // Fields chosen by: 4 // docker run --rm -it rocker/r-ver bash 5 // $ install2.r ggplot2 # has a lot of dependencies 6 // $ find /usr/local/lib/R -name DESCRIPTION | xargs cat | grep -v '^\s' | cut -d ':' -f 1 | sort | uniq -c | sort -nr 7 // 8 // For more information on the DESCRIPTION file see https://r-pkgs.org/description.html 9 10 // RDescription represents metadata from an R package DESCRIPTION file containing package information, dependencies, and author details. 11 type RDescription struct { 12 // Title is short one-line package title 13 Title string `json:"title,omitempty"` 14 15 // Description is detailed package description 16 Description string `json:"description,omitempty"` 17 18 // Author is package author(s) 19 Author string `json:"author,omitempty"` 20 21 // Maintainer is current package maintainer 22 Maintainer string `json:"maintainer,omitempty"` 23 24 // URL is the list of related URLs 25 URL []string `json:"url,omitempty"` 26 27 // Repository is CRAN or other repository name 28 Repository string `json:"repository,omitempty"` 29 30 // Built is R version and platform this was built with 31 Built string `json:"built,omitempty"` 32 33 // NeedsCompilation is whether this package requires compilation 34 NeedsCompilation bool `json:"needsCompilation,omitempty"` 35 36 // Imports are the packages imported in the NAMESPACE 37 Imports []string `json:"imports,omitempty"` 38 39 // Depends are the packages this package depends on 40 Depends []string `json:"depends,omitempty"` 41 42 // Suggests are the optional packages that extend functionality 43 Suggests []string `json:"suggests,omitempty"` 44 }