Skip to content

Commit

Permalink
Fix check warnings and errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmgarnier committed Feb 23, 2021
1 parent 5b6bc9f commit 135f5ea
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Imports:
Rfast2 (>= 0.0.8),
rgenoud (>= 5.8-3.0),
mvoutlier (>= 2.0.9),
cluster (>= 2.1.0),
CEC (>= 0.10.2)
Remotes:
github::swarm-lab/Rvision
Expand Down
2 changes: 1 addition & 1 deletion R/backgrounder.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#'
#' @examples
#' cctv <- Rvision::video(system.file("sample_vid/Walk3.mp4", package = "Rvision"))
#' background <- backgrounder(cctv, 100)
#' background <- backgrounder(cctv, 20)
#' plot(background)
#'
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ optimEllipse <- function(x, y) {
d <- Rfast::Dist(cbind(x, y))
start <- c(mean(x), mean(y), max(d), max(d), 0)

opt <- optim(start, function(par) {
opt <- stats::optim(start, function(par) {
sum((.dist2ellipse(x, y, par[1], par[2], par[3], par[4], par[5]) - 1) ^ 2)
}, method = "L-BFGS-B",
lower = c(min(x), min(y), -Inf, -Inf, -pi),
Expand Down
4 changes: 4 additions & 0 deletions R/modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
#' @author Simon Garnier, \email{garnier@@njit.edu}
#'
#' @examples
#' \dontrun{
#' moduleUI("trackR/video")
#' }
#'
#' @export
moduleUI <- function(module) {
Expand All @@ -33,7 +35,9 @@ moduleUI <- function(module) {
#' @author Simon Garnier, \email{garnier@@njit.edu}
#'
#' @examples
#' \dontrun{
#' moduleSVR("trackR/video")
#' }
#'
#' @export
moduleSVR <- function(module) {
Expand Down
Binary file removed inst/sample/clean.png
Binary file not shown.
Binary file removed inst/sample/full.png
Binary file not shown.
Binary file removed inst/sample/mask.png
Binary file not shown.
2 changes: 1 addition & 1 deletion man/backgrounder.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/moduleSVR.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/moduleUI.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 135f5ea

Please sign in to comment.