Skip to content

Commit

Permalink
Remove evaluation recording from riskmetric assessments
Browse files Browse the repository at this point in the history
  • Loading branch information
jthompson-arcus committed Aug 2, 2024
1 parent a199a2e commit 1c4451e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion R/utils_insert_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,20 @@ insert_riskmetric_to_db <- function(pkg_name, pkg_version = "",
loggit::loggit("WARN", paste("Package", pkg_name, "not found."))
return()
}


riskmetric_assess <-
lapply(riskmetric_assess[-(1:3)], \(x) {
out <-
list(
structure(
x[[1]],
.recording = NULL,
class = setdiff(class(x[[1]]), "with_eval_recording")
)
)
attributes(out) <- attributes(x)
out
})
assessment_serialized <- data.frame(pkg_assess = I(lapply(riskmetric_assess, serialize, connection = NULL)))

# Insert all the metrics (columns of class "pkg_score") into the db.
Expand Down

0 comments on commit 1c4451e

Please sign in to comment.