X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/134815098b060c232d1eee381d1eeb8e9d6162ff..e12c1fed6336048d6ab854bbfab95eccf7c1b372:/sdk/R/install_deps.R diff --git a/sdk/R/install_deps.R b/sdk/R/install_deps.R index 5314c86e28..6c33f97913 100644 --- a/sdk/R/install_deps.R +++ b/sdk/R/install_deps.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + options(repos=structure(c(CRAN="http://cran.wustl.edu/"))) if (!requireNamespace("devtools")) { install.packages("devtools") @@ -11,5 +15,11 @@ if (!requireNamespace("knitr")) { if (!requireNamespace("markdown")) { install.packages("markdown") } +if (!requireNamespace("XML")) { + # XML 3.99-0.4 depends on R >= 4.0.0, but we run tests on debian + # stable (10) with R 3.5.2 so we install an older version from + # source. + install.packages("https://cran.r-project.org/src/contrib/Archive/XML/XML_3.99-0.3.tar.gz", repos=NULL, type="source") +} devtools::install_dev_deps()