Skip to content

Commit

Permalink
Make test run even in the absence of Rcpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jul 4, 2023
1 parent d3614c7 commit eca7656
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/test-rcpp.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ test_that("use_rcpp() creates files/dirs, edits DESCRIPTION and .gitignore", {
create_local_package()
use_roxygen_md()

# pretend Rcpp is installed
local_check_installed()

use_rcpp("test")
expect_match(desc::desc_get("LinkingTo"), "Rcpp")
expect_match(desc::desc_get("Imports"), "Rcpp")
Expand Down

0 comments on commit eca7656

Please sign in to comment.