Skip to content

Commit

Permalink
fixed doc bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dsjohnson committed Oct 3, 2024
1 parent 3c41aec commit 89ad099
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: crawl
Type: Package
Title: Fit Continuous-Time Correlated Random Walk Models to Animal Movement Data
Version: 2.3.1
Date: 2024-10-02
Date: 2024-10-03
Authors@R: c(person("Devin S.", "Johnson", email = "[email protected]",
role = c("aut", "cre")),
person("Josh", "London", email = "[email protected]",
Expand Down Expand Up @@ -36,7 +36,7 @@ Encoding: UTF-8
LazyLoad: yes
ByteCompile: TRUE
NeedsCompilation: yes
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
URL: https://github.com/NMML/crawl
BugReports: https://github.com/NMML/crawl/issues
LazyData: true
14 changes: 14 additions & 0 deletions R/crawl-internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,17 @@ sfc_as_cols <- function(x, geometry, names = c("x","y")) {
ret <- setNames(ret,names)
dplyr::bind_cols(x,ret)
}

# conf_elps <- function(x, y, V, prob=0.95){
# require(sf, quietly = TRUE)
# v <- eigen(V)$vectors
# lambda <- eigen(V)$values
# t <- seq(0,2*pi, length=50)
# m <- qchisq(prob,2)
# x_l <- x + sqrt(m*lambda[1])*v[1,1]*cos(t) + sqrt(m*lambda[2])*v[1,2]*sin(t)
# y_l <- y + sqrt(m*lambda[1])*v[2,1]*cos(t) + sqrt(m*lambda[2])*v[2,2]*sin(t)
# ell <- cbind(x=x_l, y=y_l)
# ell <- st_linestring(ell) |> st_cast("POLYGON")
# return(st_sfc(list(ell)))
# }

5 changes: 2 additions & 3 deletions R/crawl-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' Package: \tab crawl\cr
#' Type: \tab Package\cr
#' Version: \tab 2.3.1\cr
#' Date: \tab October 2, 2024\cr
#' Date: \tab October 3, 2024\cr
#' License: \tab CC0 \cr
#' LazyLoad: \tab yes\cr
#' }
Expand All @@ -25,7 +25,6 @@
#'
#' @name crawl-package
#' @aliases crawl-package crawl
#' @docType package
#' @author Josh London and Devin S. Johnson
#'
#' Maintainer: Devin S. Johnson <devin.johnson@@noaa.gov>
Expand All @@ -40,8 +39,8 @@
#' na.pass optim pchisq pexp pnorm qnorm
#' rchisq runif sd setNames median rnorm
#' @useDynLib crawl, .registration = TRUE
"_PACKAGE"

NULL

if(getRversion() >= "2.15.1") utils::globalVariables(c("."))

Expand Down
9 changes: 2 additions & 7 deletions R/crwPredict.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@
#' @param return.type character. Should be one of \code{"minimal","flat","list"} (see Details).
#' @param ... Additional arguments for testing new features
#'
#' @details
#' \itemize{
#' \item("predTime"){
#' \code{predTime} can be either passed as a separate vector of POSIXct or
#' @details \code{predTime} can be either passed as a separate vector of POSIXct or
#' numeric values for all prediction times expected in the returned object.
#' Note, previous versions of \code{crwPredict} would return both times
#' specified via \code{predTime} as well as each original observed time. This is
#' no longer the default (see \item{return.type}). If the original data were
#' no longer the default (see \code{return.type}). If the original data were
#' provided as a POSIXct type, then \code{crwPredict} can derive a sequence of
#' regularly spaced prediction times from the original data. This is specified
#' by providing a character string that corresponds to the \code{by} argument
Expand All @@ -37,8 +34,6 @@
#' (e.g. '1 hour' will round up to the nearest hour, '30 mins' will round up to
#' the nearest minute) and start the sequence from there. The last observation
#' time is truncated down to the nearest unit to specify the end time.
#' }
#' }
#'
#' @return
#'
Expand Down
4 changes: 2 additions & 2 deletions man/crawl-package.Rd

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

7 changes: 1 addition & 6 deletions man/crwPredict.Rd

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

0 comments on commit 89ad099

Please sign in to comment.