- using R Under development (unstable) (2025-09-03 r88788 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'forestmangr/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'forestmangr' version '0.9.8'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'forestmangr' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [11s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [15s] ERROR
Running examples in 'forestmangr-Ex.R' failed
The error most likely occurred in:
> ### Name: inv
> ### Title: Calculate the inverse of a number
> ### Aliases: inv
>
> ### ** Examples
>
> library(forestmangr)
> data("exfm15")
> head(exfm15)
# A tibble: 6 × 7
STRATA STRATA_AREA PLOT PLOT_AREA DBH TH OBS
<int> <int> <int> <int> <dbl> <dbl> <fct>
1 2 45 1 810 15 23.8 N
2 2 45 1 810 13 23.8 N
3 2 45 1 810 15 24.7 N
4 2 45 1 810 13.5 23.3 N
5 2 45 1 810 15 24.3 N
6 2 45 1 810 14 22.4 N
>
> # Get the inverse of a vector
> inv(iris$Petal.Length)
[1] 0.7142857 0.7142857 0.7692308 0.6666667 0.7142857 0.5882353 0.7142857
[8] 0.6666667 0.7142857 0.6666667 0.6666667 0.6250000 0.7142857 0.9090909
[15] 0.8333333 0.6666667 0.7692308 0.7142857 0.5882353 0.6666667 0.5882353
[22] 0.6666667 1.0000000 0.5882353 0.5263158 0.6250000 0.6250000 0.6666667
[29] 0.7142857 0.6250000 0.6250000 0.6666667 0.6666667 0.7142857 0.6666667
[36] 0.8333333 0.7692308 0.7142857 0.7692308 0.6666667 0.7692308 0.7692308
[43] 0.7692308 0.6250000 0.5263158 0.7142857 0.6250000 0.7142857 0.6666667
[50] 0.7142857 0.2127660 0.2222222 0.2040816 0.2500000 0.2173913 0.2222222
[57] 0.2127660 0.3030303 0.2173913 0.2564103 0.2857143 0.2380952 0.2500000
[64] 0.2127660 0.2777778 0.2272727 0.2222222 0.2439024 0.2222222 0.2564103
[71] 0.2083333 0.2500000 0.2040816 0.2127660 0.2325581 0.2272727 0.2083333
[78] 0.2000000 0.2222222 0.2857143 0.2631579 0.2702703 0.2564103 0.1960784
[85] 0.2222222 0.2222222 0.2127660 0.2272727 0.2439024 0.2500000 0.2272727
[92] 0.2173913 0.2500000 0.3030303 0.2380952 0.2380952 0.2380952 0.2325581
[99] 0.3333333 0.2439024 0.1666667 0.1960784 0.1694915 0.1785714 0.1724138
[106] 0.1515152 0.2222222 0.1587302 0.1724138 0.1639344 0.1960784 0.1886792
[113] 0.1818182 0.2000000 0.1960784 0.1886792 0.1818182 0.1492537 0.1449275
[120] 0.2000000 0.1754386 0.2040816 0.1492537 0.2040816 0.1754386 0.1666667
[127] 0.2083333 0.2040816 0.1785714 0.1724138 0.1639344 0.1562500 0.1785714
[134] 0.1960784 0.1785714 0.1639344 0.1785714 0.1818182 0.2083333 0.1851852
[141] 0.1785714 0.1960784 0.1960784 0.1694915 0.1754386 0.1923077 0.2000000
[148] 0.1923077 0.1851852 0.1960784
>
> # Fit a model that contains the inverse of a variable, without the need to
> # create a new variable for the inverse:
> lm(log(TH) ~ inv(DBH), exfm15 )
Call:
lm(formula = log(TH) ~ inv(DBH), data = exfm15)
Coefficients:
(Intercept) inv(DBH)
3.712 -8.733
> # or
> lm_table(exfm15, log(TH) ~ inv(DBH) )
Error in `dplyr::mutate()`:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
Backtrace:
▆
1. ├─forestmangr::lm_table(exfm15, log(TH) ~ inv(DBH))
2. │ └─... %>% dplyr::ungroup()
3. ├─dplyr::ungroup(.)
4. ├─dplyr::mutate(...)
5. ├─dplyr:::mutate.data.frame(...)
6. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
7. │ ├─base::withCallingHandlers(...)
8. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
9. │ └─mask$eval_all_mutate(quo)
10. │ └─dplyr (local) eval()
11. ├─purrr::map(Reg, glance_)
12. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
13. │ ├─purrr:::with_indexed_errors(...)
14. │ │ └─base::withCallingHandlers(...)
15. │ ├─purrr:::call_with_cleanup(...)
16. │ └─forestmangr (local) .f(.x[[i]], ...)
17. │ └─tibble::tibble(...)
18. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
19. │ └─rlang::eval_tidy(xs[[j]], mask)
20. ├─broom::glance(x)
21. ├─broom:::glance.lm(x)
22. │ ├─base::with(...)
23. │ └─base::with.default(...)
24. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
25. │ └─base::eval(substitute(expr), data, enclos = parent.frame())
26. │ └─tibble::tibble(...)
27. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
28. │ └─rlang::eval_tidy(xs[[j]], mask)
29. ├─stats::AIC(x)
30. ├─stats:::AIC.default(x)
31. └─base::.handleSimpleError(...)
32. └─purrr (local) h(simpleError(msg, call))
33. └─cli::cli_abort(...)
34. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [80s] ERROR
Error(s) in re-building vignettes:
--- re-building 'eq_group_fit_en.Rmd' using rmarkdown
Quitting from eq_group_fit_en.Rmd:31-34 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'eq_group_fit_en.Rmd' failed with diagnostics:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
--- failed re-building 'eq_group_fit_en.Rmd'
--- re-building 'eq_group_fit_ptbr.Rmd' using rmarkdown
Quitting from eq_group_fit_ptbr.Rmd:32-35 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'eq_group_fit_ptbr.Rmd' failed with diagnostics:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
--- failed re-building 'eq_group_fit_ptbr.Rmd'
--- re-building 'invent_vol_plot_en.Rmd' using rmarkdown
Quitting from invent_vol_plot_en.Rmd:44-49 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'invent_vol_plot_en.Rmd' failed with diagnostics:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
--- failed re-building 'invent_vol_plot_en.Rmd'
--- re-building 'invent_vol_plot_ptbr.Rmd' using rmarkdown
Quitting from invent_vol_plot_ptbr.Rmd:45-50 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'invent_vol_plot_ptbr.Rmd' failed with diagnostics:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
--- failed re-building 'invent_vol_plot_ptbr.Rmd'
--- re-building 'phyto_ana_en.Rmd' using rmarkdown
--- finished re-building 'phyto_ana_en.Rmd'
--- re-building 'phyto_ana_ptbr.Rmd' using rmarkdown
--- finished re-building 'phyto_ana_ptbr.Rmd'
--- re-building 'sampling_en.Rmd' using rmarkdown
--- finished re-building 'sampling_en.Rmd'
--- re-building 'sampling_ptbr.Rmd' using rmarkdown
--- finished re-building 'sampling_ptbr.Rmd'
--- re-building 'volume_est_en.Rmd' using rmarkdown
Quitting from volume_est_en.Rmd:70-75 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'volume_est_en.Rmd' failed with diagnostics:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
--- failed re-building 'volume_est_en.Rmd'
--- re-building 'volume_est_ptbr.Rmd' using rmarkdown
Quitting from volume_est_ptbr.Rmd:75-80 [unnamed-chunk-8]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'volume_est_ptbr.Rmd' failed with diagnostics:
ℹ In argument: `Qualid = purrr::map(Reg, glance_)`.
Caused by error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
--- failed re-building 'volume_est_ptbr.Rmd'
--- re-building 'yield_growth_en.Rmd' using rmarkdown
--- finished re-building 'yield_growth_en.Rmd'
--- re-building 'yield_growth_ptbr.Rmd' using rmarkdown
--- finished re-building 'yield_growth_ptbr.Rmd'
SUMMARY: processing the following files failed:
'eq_group_fit_en.Rmd' 'eq_group_fit_ptbr.Rmd'
'invent_vol_plot_en.Rmd' 'invent_vol_plot_ptbr.Rmd'
'volume_est_en.Rmd' 'volume_est_ptbr.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [23s] OK
- checking HTML version of manual ... [12s] OK
- DONE
Status: 2 ERRORs