diff --git a/Rebuild_instructions.R b/Rebuild_instructions.R index 92924ecc..1b17e032 100644 --- a/Rebuild_instructions.R +++ b/Rebuild_instructions.R @@ -3,6 +3,10 @@ # 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 9d73b7e2..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:43Z +last_built: 2022-02-07T00:06Z diff --git a/docs/reference/L2_distance.html b/docs/reference/L2_distance.html index fdb961f8..d14f539e 100644 --- a/docs/reference/L2_distance.html +++ b/docs/reference/L2_distance.html @@ -140,8 +140,8 @@

Examples

A <- matrix(rnorm(400), nrow = 10)
 B <- matrix(rnorm(800), nrow = 10)
 L2_distance(A[,1, drop = FALSE], B[,1, drop = FALSE])
-#>          [,1]
-#> [1,] 2.700913
+#>         [,1]
+#> [1,] 4.56815
 d_AB <- L2_distance(A,B)
 d_BB <- L2_distance(B,B, df = 1) # force diagonal to be zero
 
diff --git a/docs/reference/condGrob.html b/docs/reference/condGrob.html index 3ee60aa5..afdc8671 100644 --- a/docs/reference/condGrob.html +++ b/docs/reference/condGrob.html @@ -121,8 +121,9 @@

Examples

grobFun = textGrob, name = "my label", label = "Some random text") +#> Error in condGrob(test = (runif(1) > 0.5), grobFun = textGrob, name = "my label", label = "Some random text"): object 'textGrob' not found myGrob -#> grob[my label: textGrob arguments] +#> Error in eval(expr, envir, enclos): object 'myGrob' not found diff --git a/docs/reference/l_predict.html b/docs/reference/l_predict.html index e7d5389b..20c844e8 100644 --- a/docs/reference/l_predict.html +++ b/docs/reference/l_predict.html @@ -167,13 +167,13 @@

Examples

pre <- l_predict(model1, newdata = data.frame(x = sort(x)), interval = "conf") head(pre) -#> x y lower upper -#> 1 -0.6138587 0.4164934 -0.3971807 1.2301674 -#> 2 -0.4670041 0.3606264 -0.3779005 1.0991534 -#> 3 -0.4140653 0.3404872 -0.3721833 1.0531578 -#> 4 -0.2918479 0.2939929 -0.3620803 0.9500660 -#> 5 0.5086141 -0.0105217 -0.4994710 0.4784276 -#> 6 0.5240910 -0.0164095 -0.5070975 0.4742785 +#> x y lower upper +#> 1 -1.59560668 0.70771650 -0.4668193 1.8822523 +#> 2 -0.92638601 0.47055712 -0.3458284 1.2869426 +#> 3 -0.58391890 0.34919313 -0.3205065 1.0188928 +#> 4 -0.41843755 0.29054961 -0.3249227 0.9060219 +#> 5 -0.09389071 0.17553624 -0.3808443 0.7319168 +#> 6 0.27337395 0.04538446 -0.5367930 0.6275619 if(interactive()) { p <- with(cars, l_plot(speed, dist)) diff --git a/docs/reference/tcl_img_2_r_raster.html b/docs/reference/tcl_img_2_r_raster.html index 05987ca7..64a46589 100644 --- a/docs/reference/tcl_img_2_r_raster.html +++ b/docs/reference/tcl_img_2_r_raster.html @@ -112,7 +112,7 @@

Examples

grid::grid.newpage() grid::grid.raster(raster) } -#> Error in l_image_import_files(puglia): All file formats other than png require the IMG Tcl extension. +