1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 # NOTE: `R CMD check` (and by extension, the Arvados test suite)
6 # will carp at you if you use GNU extensions.
7 # <https://cran.r-project.org/doc/manuals/R-exts.html#Writing-portable-packages>
10 SDK_VERSION!=awk '($$1 == "Version:"){v=$$2} END {print v}' DESCRIPTION
16 R/Arvados.R: arvados-v1-discovery.json generateApi.R
17 Rscript --vanilla generateApi.R
19 # Used by arvados/doc/Rakefile.
20 # Check whether we can load libraries necessary to build the package.
23 Rscript --vanilla -e "library(jsonlite); library(roxygen2);"
27 rm -rf $(ALL) "ArvadosR_$(SDK_VERSION).tar.gz"
33 man: R/Arvados.R R/*.R
34 Rscript --vanilla -e "library(roxygen2); roxygen2::roxygenize(clean=TRUE)"
37 package: "ArvadosR_$(SDK_VERSION).tar.gz"
38 "ArvadosR_$(SDK_VERSION).tar.gz": $(ALL) [A-Z]* *.R tests/*.R tests/testthat/*.R tests/testthat/fakes/*.R
43 Rscript --vanilla run_test.R