summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJen Herting <jen@herting.cc>2021-04-12 17:53:36 -0400
committerGitHub <noreply@github.com>2021-04-12 21:53:36 +0000
commit85e70600ed7e249c80d8703d2f02a74bc9dda158 (patch)
tree3e39f6aad9abbc6cd9111f6f55ba5e1b6e8ec1d0
parenta7d7f4e98afc49b4d5a5ffef6d46be0cd3f037a8 (diff)
downloadspack-85e70600ed7e249c80d8703d2f02a74bc9dda158.tar.gz
spack-85e70600ed7e249c80d8703d2f02a74bc9dda158.tar.bz2
spack-85e70600ed7e249c80d8703d2f02a74bc9dda158.tar.xz
spack-85e70600ed7e249c80d8703d2f02a74bc9dda158.zip
New package: r-tictoc (#22937)
-rw-r--r--var/spack/repos/builtin/packages/r-tictoc/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-tictoc/package.py b/var/spack/repos/builtin/packages/r-tictoc/package.py
new file mode 100644
index 0000000000..0b56b4d08a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-tictoc/package.py
@@ -0,0 +1,28 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class RTictoc(RPackage):
+ """tictoc: Functions for timing R scripts, as well as implementations of
+ Stack and List structures
+
+ This package provides the timing functions 'tic' and 'toc'
+ that can be nested. One can record all timings while a
+ complex script is running, and examine the values later. It
+ is also possible to instrument the timing calls with custom
+ callbacks. In addition, this package provides class
+ 'Stack', implemented as a vector, and class 'List',
+ implemented as a list, both of which support operations
+ 'push', 'pop', 'first', 'last' and 'clear'."""
+
+ homepage = "https://collectivemedia.github.io/tictoc/"
+ url = "https://cloud.r-project.org/src/contrib/tictoc_1.0.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/tictoc"
+
+ version('1.0', sha256='47da097c1822caa2d8e262381987cfa556ad901131eb96109752742526b2e2fe')
+
+ depends_on('r@3.0.3:', type=('build', 'run'))