Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fed3e9

Browse files
committed
Fix test cases
1 parent2320ba5 commit5fed3e9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

‎R/install-plan.R‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ install_package_plan <- function(
100100
plan$metadata<- replicate(nrow(plan),character(),simplify=FALSE)
101101
}
102102
if (!"packaged"%in% colnames(plan))plan$packaged<-TRUE
103+
if (!"used_cached_binary"%in% colnames(plan)) {
104+
plan$used_cached_binary<-FALSE
105+
}
103106

104107
plan<- add_recursive_dependencies(plan)
105108

@@ -178,7 +181,8 @@ make_start_state <- function(plan, config) {
178181
package_error= I(rep_list(nrow(plan),list())),
179182
package_stdout= I(rep_list(nrow(plan),character())),
180183
build_done= (plan$type%in% c("deps","installed"))|
181-
plan$binary|plan$used_cached_binary,
184+
plan$binary|
185+
plan$used_cached_binary,
182186
build_time= I(rep_list(nrow(plan), as.POSIXct(NA))),
183187
build_error= I(rep_list(nrow(plan),list())),
184188
build_stdout= I(rep_list(nrow(plan),character())),
16 Bytes
Binary file not shown.

‎tests/testthat/test-type-any.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test_that("parse_remote_any", {
3535
suppressMessages(plan$download())
3636
suppressMessages(plan$install())
3737

38-
# Now check the lockfile, it should install anything
38+
# Now check the lockfile, it shouldnotinstall anything
3939
plan<-pkgdepends::new_pkg_installation_plan(
4040
lockfile,
4141
config=list(library=lib)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp