pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

R-conditionz: Import R package conditionz-0.1.0 as wip/R-conditionz



Module Name:	pkgsrc-wip
Committed By:	Brook Milligan <brook%nmsu.edu@localhost>
Pushed By:	brook
Date:		Wed Sep 8 11:46:09 2021 -0600
Changeset:	2d118e54aaf7e6d3236ec984c8245b4dae2e765d

Modified Files:
	Makefile
Added Files:
	R-conditionz/DESCR
	R-conditionz/Makefile
	R-conditionz/distinfo

Log Message:
R-conditionz: Import R package conditionz-0.1.0 as wip/R-conditionz

Control how many times conditions are thrown

Package API:

 - `handle_messages`
 - `handle_conditions`
 - `ConditionKeeper`
 - `handle_warnings`
 - `capture_message`
 - `capture_warning`

Use cases for `conditionz` functions:

- `ConditionKeeper` is what you want to use if you want to keep track
  of conditions inside a function being applied many times, either in
  a for loop or lapply style fashion.

- `handle_conditions`/`handle_messages`/`handle_warnings` is what you
  want to use if the multiple conditions are happening within a single
  function or code block

- `capture_message`/`capture_warning` are meant for capturing
  messages/warnings into a useable list

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2d118e54aaf7e6d3236ec984c8245b4dae2e765d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile              |  1 +
 R-conditionz/DESCR    |  3 +++
 R-conditionz/Makefile | 16 ++++++++++++++++
 R-conditionz/distinfo |  6 ++++++
 4 files changed, 26 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 28a472b791..f7f55d2ea0 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,7 @@ SUBDIR+=	R-bigmemory
 SUBDIR+=	R-bigmemory.sri
 SUBDIR+=	R-bigtabulate
 SUBDIR+=	R-bnlearn
+SUBDIR+=	R-conditionz
 SUBDIR+=	R-cubature
 SUBDIR+=	R-doParallel
 SUBDIR+=	R-easySVG
diff --git a/R-conditionz/DESCR b/R-conditionz/DESCR
new file mode 100644
index 0000000000..d02898a9e3
--- /dev/null
+++ b/R-conditionz/DESCR
@@ -0,0 +1,3 @@
+Provides ability to control how many times in function calls
+conditions are thrown (shown to the user). Includes control of
+warnings and messages.
diff --git a/R-conditionz/Makefile b/R-conditionz/Makefile
new file mode 100644
index 0000000000..38f4c8fc3d
--- /dev/null
+++ b/R-conditionz/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+R_PKGNAME=	conditionz
+R_PKGVER=	0.1.0
+CATEGORIES=	devel
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+COMMENT=	Control how many times conditions are thrown
+LICENSE=	mit
+
+DEPENDS+=	R-uuid>=0.1.2:../../devel/R-uuid
+
+USE_LANGUAGES=	# none
+
+.include "../../math/R/Makefile.extension"
+.include "../../mk/bsd.pkg.mk"
diff --git a/R-conditionz/distinfo b/R-conditionz/distinfo
new file mode 100644
index 0000000000..5328f4a251
--- /dev/null
+++ b/R-conditionz/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (R/conditionz_0.1.0.tar.gz) = e56fecd4f0025b170e0b54f099713bef42d1c53e
+RMD160 (R/conditionz_0.1.0.tar.gz) = b834a3dbd30b3781c065a3f3e8bf8ee2b886962b
+SHA512 (R/conditionz_0.1.0.tar.gz) = b1b9b8181d20c9681c31520d17544b9551c44411763d0019ac68181b305f3b4d34a1c92fc26915e10f43fbd3546f7c1061a661b87c5c2dd3b2f3a358afb91904
+Size (R/conditionz_0.1.0.tar.gz) = 7372 bytes


Home | Main Index | Thread Index | Old Index