Open-Systems-Pharmacology / TLF-Library

TLF Library implementation in R
https://www.open-systems-pharmacology.org/TLF-Library/
Other
9 stars 6 forks source link

Missing dependency? #494

Closed Yuri05 closed 9 months ago

Yuri05 commented 9 months ago

When executing testthat tests on a test system, some tests failed due to missing package gridtext However tlf was installed without any warnings/errors, so I assume this dependency is missing in the DESCRIPTION?

-- Error (test-plot-grid.R:6:1): (code run outside of `test_that()`) -----------
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called ‘gridtext’
Backtrace:
     x
  1. +-tlf::plotBoxWhisker(...) at test-plot-grid.R:6:0
  2. | \-tlf:::.setPlotObject(plotObject, plotConfiguration)
  3. |   +-plotObject %||% initializePlot(plotConfiguration)
  4. |   \-tlf::initializePlot(plotConfiguration)
  5. |     \-tlf::setPlotLabels(plotObject)
  6. |       \-labels$updatePlot(newPlotObject)
  7. |         +-ggplot2::theme(...)
  8. |         | \-ggplot2:::find_args(..., complete = NULL, validate = NULL)
  9. |         |   \-base::mget(args, envir = env)
 10. |         \-private$.xlabel$createPlotTextBoxFont()
 11. |           \-self$font$createPlotTextBoxFont(...)
 12. \-base::loadNamespace(x)
 13.   +-base::namespaceImport(...)
 14.   \-base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
 15.     \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
 16.       \-base (local) withOneRestart(expr, restarts[[1L]])
 17.         \-base (local) doWithOneRestart(return(expr), restart)
-- Error (test-tornado.R:51:3): Regular tornado plots with their options work properly --
<packageNotFoundError/error/condition>
Error in `loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])`: there is no package called ‘gridtext’
Backtrace:
     x
  1. +-tlf::plotTornado(x = tornadoMeanData$sensitivity, y = tornadoMeanData$path) at test-tornado.R:51:2
  2. | \-tlf:::.setPlotObject(plotObject, plotConfiguration)
  3. |   +-plotObject %||% initializePlot(plotConfiguration)
  4. |   \-tlf::initializePlot(plotConfiguration)
  5. |     \-tlf::setPlotLabels(plotObject)
  6. |       \-labels$updatePlot(newPlotObject)
  7. |         +-ggplot2::theme(...)
  8. |         | \-ggplot2:::find_args(..., complete = NULL, validate = NULL)
  9. |         |   \-base::mget(args, envir = env)
 10. |         \-private$.xlabel$createPlotTextBoxFont()
 11. |           \-self$font$createPlotTextBoxFont(...)
 12. \-base::loadNamespace(x)
 13.   +-base::namespaceImport(...)
 14.   \-base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
 15.     \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
 16.       \-base (local) withOneRestart(expr, restarts[[1L]])
 17.         \-base (local) doWithOneRestart(return(expr), restart)

[ FAIL 14 | WARN 0 | SKIP 8 | PASS 246 ]
Felixmil commented 9 months ago

Hi @Yuri05,

What kind of "test system" is it ?

How was {tlf} installed ?

It seems that {gridtext} is a dependency of {ggtext} . So I think something went wrong during {ggtext}installation.

Yuri05 commented 9 months ago

ok, I see. then that was an installation error (the system does not have internet access and I installed CRAN packages manually). Closing.