Skip to content

Commit

Permalink
Remove unused xml2 in R (#5219)
Browse files Browse the repository at this point in the history
* remove xml2

Signed-off-by: harupy <hkawamura0130@gmail.com>

* use source with echo=TRUE

Signed-off-by: harupy <hkawamura0130@gmail.com>

* add -e

Signed-off-by: harupy <hkawamura0130@gmail.com>
  • Loading branch information
harupy committed Jan 6, 2022
1 parent 8f675ca commit 080c058
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Expand Up @@ -105,7 +105,7 @@ jobs:
cd mlflow/R/mlflow
R CMD build .
cd tests
Rscript ../.create-test-env.R
Rscript -e 'source("../.create-test-env.R", echo=TRUE)'
- name: Run tests
env:
# Hack to get around this issue:
Expand All @@ -120,7 +120,7 @@ jobs:
cd mlflow/R/mlflow/tests
# `devtools::check_built` requires `pandoc` to analyze README.md
sudo apt-get install pandoc -y
Rscript ../.run-tests.R
Rscript -e 'source("../.run-tests.R", echo=TRUE)'
- name: Calculate code coverage
if: ${{ success() }}
run: |
Expand Down
8 changes: 8 additions & 0 deletions mlflow/R/mlflow/.run-tests.R
Expand Up @@ -8,8 +8,16 @@ use_condaenv(mlflow:::mlflow_conda_env_name())

devtools::check_built(
path = package,
cran = TRUE,
remote = should_enable_cran_incoming_checks(),
error_on = "note",
args = "--no-tests"
)
# This runs checks that are disabled when `cran` is TRUE (e.g. unused import check).
devtools::check_built(
path = package,
cran = FALSE,
error_on = "note",
args = "--no-tests"
)
source("testthat.R")
1 change: 0 additions & 1 deletion mlflow/R/mlflow/DESCRIPTION
Expand Up @@ -46,7 +46,6 @@ Imports:
swagger,
tibble (>= 2.0.0),
withr,
xml2,
yaml,
zeallot
Suggests:
Expand Down

0 comments on commit 080c058

Please sign in to comment.