Skip to content

Commit fc40c43

Browse files
committed
fix R CMD check errors
1 parent 4a0c230 commit fc40c43

File tree

7 files changed

+7
-27
lines changed

7 files changed

+7
-27
lines changed

flop_r/LICENSE.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

flop_r/R/extendr-wrappers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ NULL
2626
#' W[cbind(1:(p-1), 2:p)] <- 1
2727
#' X <- matrix(rnorm(10000 * p), nrow = 10000, ncol = p) %*% solve(diag(p) - W)
2828
#' X_std <- scale(X)
29-
#' run(X, 2.0, restarts=20)
29+
#' flop(X, 2.0, restarts=20)
3030
#' @export
3131
flop <- function(data, lambdaBic, restarts = NA, timeout = NA, outputDag = FALSE) .Call(wrap__flop, data, lambdaBic, restarts, timeout, outputDag)
3232

flop_r/man/flop.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flop_r/src/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name = 'flop_r'
1111

1212
[dependencies]
1313
extendr-api = '0.8.1'
14-
flop = { path = "../../../flop" }
14+
flop = { path = "./flop" }
1515
nalgebra = "0.34"
1616

1717
[profile.release]

flop_r/src/rust/flop

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../flop

flop_r/src/rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extendr_module! {
2626
/// W[cbind(1:(p-1), 2:p)] <- 1
2727
/// X <- matrix(rnorm(10000 * p), nrow = 10000, ncol = p) %*% solve(diag(p) - W)
2828
/// X_std <- scale(X)
29-
/// run(X, 2.0, restarts=20)
29+
/// flop(X, 2.0, restarts=20)
3030
/// @export
3131
#[extendr]
3232
fn flop(

flop_r/tests/testthat.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
# * https://testthat.r-lib.org/articles/special-files.html
88

99
library(testthat)
10-
library(flop)
10+
library(flopsearch)
1111

12-
test_check("flop")
12+
test_check("flopsearch")

0 commit comments

Comments
 (0)