Skip to content

Install scm()'s solver with rdborrow (0.0.5.1) - #170

Open
mattsecrest wants to merge 3 commits into
mainfrom
ecosolver-imports
Open

mattsecrest wants to merge 3 commits into
mainfrom
ecosolver-imports

Conversation

@mattsecrest

Copy link
Copy Markdown
Collaborator

scm() solves with the ECOS solver. ECOSolveR was in Suggests, so install.packages("rdborrow") did not install it. scm() then stopped with an error until the user installed ECOSolveR by hand.

CRAN checks install suggested packages, so they did not show the problem. A clean rocker/r-ver:4.6.1 container found it. rdborrow 0.0.5.0 was installed from CRAN, and the OLE_analysis_workflow vignette failed:

The 'ECOSolveR' package is required to fit the synthetic control method (scm()). Install it with install.packages('ECOSolveR').

This PR:

  • moves ECOSolveR from Suggests to Imports (@importFrom ECOSolveR ECOS_csolve);
  • removes the guard in scm() and the skip_if_not_installed("ECOSolveR") calls;
  • adds a test that rdborrow imports ECOSolveR (it fails on 0.0.5.0);
  • bumps the version to 0.0.5.1 and updates NEWS.md and cran-comments.md.

Estimates are unchanged.

Checks

  • R CMD check --as-cran on the tarball: 0 errors, 0 warnings, 2 NOTEs from the local machine (no network to verify the clock, no HTML Tidy).
  • Clean rocker/r-ver:4.6.1 container: the 0.0.5.1 tarball installed with hard dependencies only, ECOSolveR came with it, and all five vignettes rendered.

Note on the base

This branch is on release-0.0.5.0 (#169), because CRAN has 0.0.5.0. Merge #169 first, and this PR shows only the fix commit.

Bump the version, the NEWS heading, and the README citation. Require
testthat 3.3.0, which the tests need for expect_all_true(). Exclude the
untracked adversarial-review folder from the build, and update
cran-comments.md.
scm() solves with ECOS, but ECOSolveR was only in Suggests, so
install.packages("rdborrow") left it out and scm() stopped with an
error. Move ECOSolveR to Imports, drop the guard and the test skips,
and bump the version to 0.0.5.1 for CRAN.
# Conflicts:
#	DESCRIPTION
#	NEWS.md
#	cran-comments.md

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant