diff --git a/.Rbuildignore b/.Rbuildignore index 4e5598eb..d4e6ddf3 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,6 +1,7 @@ .DS_Store .gitignore .travis.yml +Rebuild_instructions.R R/loon.Rproj R/man-roxygen R/cran-comments.md diff --git a/R/inst/images/Apulia.png b/R/inst/images/Apulia.png new file mode 100644 index 00000000..20716487 Binary files /dev/null and b/R/inst/images/Apulia.png differ diff --git a/R/inst/images/Calabria.png b/R/inst/images/Calabria.png new file mode 100644 index 00000000..c6a3aaf2 Binary files /dev/null and b/R/inst/images/Calabria.png differ diff --git a/R/inst/images/Liguria.png b/R/inst/images/Liguria.png new file mode 100644 index 00000000..36618224 Binary files /dev/null and b/R/inst/images/Liguria.png differ diff --git a/R/inst/images/Sardinia.png b/R/inst/images/Sardinia.png new file mode 100644 index 00000000..fe4a917e Binary files /dev/null and b/R/inst/images/Sardinia.png differ diff --git a/R/inst/images/Sicily.png b/R/inst/images/Sicily.png new file mode 100644 index 00000000..3f7f23f6 Binary files /dev/null and b/R/inst/images/Sicily.png differ diff --git a/R/inst/images/Umbria.png b/R/inst/images/Umbria.png new file mode 100644 index 00000000..b140cd17 Binary files /dev/null and b/R/inst/images/Umbria.png differ diff --git a/Rebuild_instructions.R b/Rebuild_instructions.R new file mode 100644 index 00000000..1b17e032 --- /dev/null +++ b/Rebuild_instructions.R @@ -0,0 +1,12 @@ +# call make file in shell to rebuild tcl AND the tcl/R website +# Source tcl is in Tcl folder above R; +# make replaces the tcl library inside R +# +# build documentation +devtools::document(roclets = c('rd', 'collate', 'namespace')) +# run tests +devtools::test() +# check as CRAN +devtools::check(args = c('--as-cran')) +pkgdown::build_site() +devtools::check_win_devel() diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index b91d6b6e..bf48e728 100755 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -7,5 +7,5 @@ articles: loonPlotsAndGridGraphics: loonPlotsAndGridGraphics.html savingLoonPlots: savingLoonPlots.html teaching-example-smoothing: teaching-example-smoothing.html -last_built: 2022-02-06T21:12Z +last_built: 2022-02-07T00:06Z diff --git a/docs/reference/L2_distance.html b/docs/reference/L2_distance.html index faafd7fb..d14f539e 100644 --- a/docs/reference/L2_distance.html +++ b/docs/reference/L2_distance.html @@ -140,8 +140,8 @@
A <- matrix(rnorm(400), nrow = 10)
B <- matrix(rnorm(800), nrow = 10)
L2_distance(A[,1, drop = FALSE], B[,1, drop = FALSE])
-#> [,1]
-#> [1,] 4.076617
+#> [,1]
+#> [1,] 4.56815
d_AB <- L2_distance(A,B)
d_BB <- L2_distance(B,B, df = 1) # force diagonal to be zero