[bug#55381,05/14] gnu: Add r-unglue.
Commit Message
From: Kyle Andrews <kyle@posteo.net>
---
gnu/packages/cran.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Comments
kyle schreef op do 12-05-2022 om 02:10 [+0000]:
> Use syntax inspired by the package 'glue'
Shouldn't this be 'r-glue'? Guix doesn't have a package named 'glue'.
Also, writing a description (+- = some factual statements) in the
imperative mood ... is technically possible, but I wouldn't recommend
it. Referring to another package for more information on what 'rust-
unglue' is about is technically possible, but a bit cumbersome for the
reader I think. Maybe you can re-use parts of the description of
'r-glue'.
> to extract matched substrings in a
> +more intuitive and compact way than by using standard regular expressions.
This is a bit markety language.
More generally, upstream descriptions often aren't great and require
some tweaking, expanding (and sometimes abbreviation, though not in
this particular case). The manual has some general guidelines in
(guix)Synopses and Descriptions.
FWIW, I consider 'emacs', 'hello' and 'sed' to have good descriptions,
though the emacs description goes a bit markety with ‘highly
customizable ... extensive documention on everything’ and such ...
though in the case of Emacs those claims appear to be actually true so
maybe it's a good description after all.
Greetings,
Maxime.
@@ -33338,6 +33338,26 @@ (define-public r-unpivotr
with one other by their proximity in given directions. Functions for data
frames and HTML tables are provided.")
(license license:expat)))
+
+(define-public r-unglue
+ (package
+ (name "r-unglue")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (cran-uri "unglue" version))
+ (sha256
+ (base32 "0w8ld4xllx0lj1jz8i2sj92f8136hlwri1d8ldpg1ymxj7aw93vg"))))
+ (properties `((upstream-name . "unglue")))
+ (build-system r-build-system)
+ (home-page "https://cran.r-project.org/package=unglue")
+ (synopsis "Extract Matched Substrings Using a Pattern")
+ (description
+ "Use syntax inspired by the package 'glue' to extract matched substrings in a
+more intuitive and compact way than by using standard regular expressions.")
+ (license license:gpl3)))
+
(define r-gpg
(package
(name "r-gpg")