summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-webshot/package.py
blob: 9c3699298caa1759cb1dd823de3b313e0e7e8e45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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.package import *


class RWebshot(RPackage):
    """Take Screenshots of Web Pages.

    Takes screenshots of web pages, including Shiny applications and R Markdown
    documents."""

    cran = "webshot"

    version('0.5.2', sha256='f183dc970157075b51ac543550a7a48fa3428b9c6838abb72fe987c21982043f')
    version('0.5.1', sha256='b9750d206c6fa0f1f16cc212b0a34f4f4bfa916962d2c877f0ee9a33620f4b23')

    depends_on('r+X', type=('build', 'run'))
    depends_on('r@3.0:', type=('build', 'run'))
    depends_on('r-magrittr', type=('build', 'run'))
    depends_on('r-jsonlite', type=('build', 'run'))
    depends_on('r-callr', type=('build', 'run'))
    depends_on('imagemagick', type='run')

    # need a phantomjs package to make this actually work.