Skip to content

Commit f8ec357

Browse files
author
hornik
committed
Document c88237.
git-svn-id: https://svn.r-project.org/R/trunk@88241 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 449401d commit f8ec357

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/NEWS.Rd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@
3030
\verb{\link[<pkg>:<myClass>-class]{<myClass>}} necessary in earlier
3131
versions of \R.
3232
33-
Packages with the new syntax need to formally depend on \samp{R >= 4.6.0}.
33+
Packages with the new syntax need to formally depend on
34+
\samp{R >= 4.6.0}.
35+
36+
\item \code{tools::analyze_license()} now also computes
37+
\href{https://spdx.dev/learn/handling-license-info/}{SPDX license
38+
identifiers},
39+
thanks to \I{Thierry Onkelinx} and \I{LLuís Revilla}.
3440
}
3541
}
3642

src/library/tools/man/licensetools.Rd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ analyze_license(x)
3232
with fixed versions. It also indicates whether the license can be
3333
verified to be \abbr{FOSS}
3434
(\url{https://en.wikipedia.org/wiki/Free_and_open-source_software})
35-
licenses.
35+
licenses and where possible computes an
36+
\href{https://spdx.dev/learn/handling-license-info/}{SPDX license
37+
identifier}
38+
for the license.
3639
}
3740
\value{
3841
a list with elements including
@@ -48,6 +51,7 @@ analyze_license(x)
4851
license spec.}
4952
\item{is_verified}{a logical indicating whether the given string can
5053
be verified to specify a \abbr{FOSS} license.}
54+
\item{spdx}{an SPDX license identifier for the license spec.}
5155
}
5256
\examples{
5357
## Examples from section 'Licenses' of 'Writing R Extensions':

0 commit comments

Comments
 (0)