From ebb08b89efdf6527fc5ffd2db96bdf5d4fdcc378 Mon Sep 17 00:00:00 2001 From: Michael Chow Date: Sat, 29 Sep 2018 18:27:27 -0400 Subject: [PATCH] pass CMD check, fix doc example --- .Rbuildignore | 2 ++ DESCRIPTION | 2 +- LICENSE | 2 ++ R/astar.R | 2 +- man/AStar_class.Rd | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 LICENSE diff --git a/.Rbuildignore b/.Rbuildignore index 91114bf..ed9bc35 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,2 +1,4 @@ ^.*\.Rproj$ ^\.Rproj\.user$ +^\.travis\.yml$ +^LICENSE\.md$ diff --git a/DESCRIPTION b/DESCRIPTION index 7d918fc..e1f0202 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -10,7 +10,7 @@ Description: Implements the A* search algorithm for finding an efficient path Imports: R6 (>= 2.2.0), datastructures (>= 0.2.0) -License: MIT + file LICENSE.md +License: MIT + file LICENSE Encoding: UTF-8 LazyData: true RoxygenNote: 6.0.1 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f3f76e6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,2 @@ +YEAR: 2018 +COPYRIGHT HOLDER: Michael Chow diff --git a/R/astar.R b/R/astar.R index a3e9568..e3e13e0 100644 --- a/R/astar.R +++ b/R/astar.R @@ -137,7 +137,7 @@ astar <- function(start, goal, #' ) #' #' searcher <- Searcher$new() -#' path <- run('A', 'B') +#' path <- searcher$run('A', 'B') #' #' @export AStar <- R6::R6Class("AStar", list( diff --git a/man/AStar_class.Rd b/man/AStar_class.Rd index 3466d8b..02a1d67 100644 --- a/man/AStar_class.Rd +++ b/man/AStar_class.Rd @@ -29,7 +29,7 @@ Has methods for all function arguments of astar. ) searcher <- Searcher$new() - path <- run('A', 'B') + path <- searcher$run('A', 'B') } \keyword{datasets}