summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-memoise/package.py
blob: e8a8b32e1bb6b181ef65aa35c7ba6221d9e46423 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright 2013-2018 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 RMemoise(RPackage):
    """Cache the results of a function so that when you call it again with the
    same arguments it returns the pre-computed value."""

    homepage = "https://github.com/hadley/memoise"
    url      = "https://cran.rstudio.com/src/contrib/memoise_1.1.0.tar.gz"
    list_url = "https://cran.r-project.org/src/contrib/Archive/memoise"
    version('1.1.0', '493209ee04673f0fcab473c3dd80fb8c')
    version('1.0.0', 'd31145292e2a88ae9a504cab1602e4ac')

    depends_on('r-digest', type=('build', 'run'))