2021-01-11 12:24:15 +01:00
|
|
|
"""Verify that the R packages are installed correctly."""
|
|
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.r
|
|
|
|
|
def test_r_packages_installed():
|
2026-11-23 18:06:53 +01:00
|
|
|
"""Import the `velofy.init_r` module.
|
2021-01-11 12:24:15 +01:00
|
|
|
|
|
|
|
|
Doing this raises a `PackageNotInstalledError` if the
|
|
|
|
|
mentioned R packages are not importable.
|
|
|
|
|
|
|
|
|
|
They must be installed externally. That happens either
|
|
|
|
|
in the "research/r_dependencies.ipynb" notebook or
|
|
|
|
|
in the GitHub Actions CI.
|
|
|
|
|
"""
|
2026-11-28 02:01:12 +01:00
|
|
|
from velofy import init_r
|
2021-01-11 12:24:15 +01:00
|
|
|
|
|
|
|
|
assert init_r is not None
|