Skip to content

Commit

Permalink
add importFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Jul 24, 2018
1 parent 5134090 commit 5f84098
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,19 @@ export(group_pts)
export(group_times)
export(randomizations)
import(data.table)
importFrom(adehabitatHR,getverticeshr)
importFrom(adehabitatHR,kernelUD)
importFrom(adehabitatHR,mcp)
importFrom(igraph,clusters)
importFrom(igraph,graph_from_adjacency_matrix)
importFrom(methods,slot)
importFrom(rgeos,gBuffer)
importFrom(rgeos,gIntersection)
importFrom(rgeos,gIntersects)
importFrom(sp,CRS)
importFrom(sp,Line)
importFrom(sp,Lines)
importFrom(sp,SpatialLines)
importFrom(sp,SpatialPointsDataFrame)
importFrom(sp,rbind.SpatialLines)
importFrom(stats,dist)
1 change: 1 addition & 0 deletions R/build_lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#' @export
#'
#' @import data.table
#' @importFrom sp SpatialLines Lines Line CRS rbind.SpatialLines
build_lines <-
function(DT = NULL,
projection = NULL,
Expand Down
2 changes: 2 additions & 0 deletions R/build_polys.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#' @return Home range polygons for each ID
#' @export
#'
#' @importFrom sp SpatialPointsDataFrame CRS
#' @importFrom adehabitatHR mcp kernelUD getverticeshr
build_polys <- function(DT = NULL,
projection = NULL,
hrType = NULL,
Expand Down
2 changes: 2 additions & 0 deletions R/group_lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#' @return Group by ID (by time) data.table
#' @export
#'
#' @importFrom rgeos gIntersects gBuffer
#' @importFrom igraph graph_from_adjacency_matrix clusters
#' @examples
#' library(data.table)
#' DT <- fread(system.file("extdata", "DT.csv", package = "spatsoc"))
Expand Down
2 changes: 2 additions & 0 deletions R/group_polys.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#' @export
#'
#' @importFrom methods slot
#' @importFrom rgeos gIntersects gIntersection gBuffer
#' @importFrom igraph graph_from_adjacency_matrix clusters
#'
#' @examples
#' library(data.table)
Expand Down
1 change: 1 addition & 0 deletions R/group_pts.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#' @export
#'
#' @importFrom stats dist
#' @importFrom igraph graph_from_adjacency_matrix clusters
#'
#' @examples
#' library(data.table)
Expand Down

0 comments on commit 5f84098

Please sign in to comment.