summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-here/package.py
blob: 4b11f3e46e578d31978b7423f1173b53f70825c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2022 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 RHere(RPackage):
    """A Simpler Way to Find Your Files.

    Constructs paths to your project's files. Declare the relative path of a
    file within your project with 'i_am()'. Use the 'here()' function as a
    drop-in replacement for 'file.path()', it will always locate the files
    relative to your project root."""

    cran = "here"

    version('1.0.1', sha256='08ed908033420d3d665c87248b3a14d1b6e2b37844bf736be620578c20ca346b')

    depends_on('r-rprojroot@2.0.2:', type=('build', 'run'))