Open annasmyk opened 1 year ago
I didn't have any error building the package with documentation. Maybe try updating rJava and rjd3toolkit.
Hi Anna, I don't have any problems either. Have you tried the solution suggested by @AQLT ? Do you still have an issue?
Hi I get the same problem when documenting the package with:
devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))
ℹ Updating rjd3bench documentation
ℹ Loading rjd3bench
✖ adl.R:3: @param requires two parts: an argument name and a
description.
✖ adl.R:4: @param requires two parts: an argument name and a
description.
✖ adl.R:5: @param requires two parts: an argument name and a
description.
✖ adl.R:6: @param requires two parts: an argument name and a
description.
✖ adl.R:7: @param requires two parts: an argument name and a
description.
✖ adl.R:8: @param requires two parts: an argument name and a
description.
✖ adl.R:9: @param requires two parts: an argument name and a
description.
✖ adl.R:10: @param requires two parts: an argument name and a
description.
✖ adl.R:11: @param requires two parts: an argument name and a
description.
✖ adl.R:14: @return requires a value.
✖ adl.R:84: @return requires a value.
✖ benchmark.R:65: @param requires two parts: an argument name and a
description.
✖ benchmark.R:66: @param requires two parts: an argument name and a
description.
✖ benchmark.R:69: @return requires a value.
✖ benchmark.R:108: @return requires a value.
✖ benchmark.R:151: @param requires two parts: an argument name and a
description.
✖ benchmark.R:152: @param requires two parts: an argument name and a
description.
✖ benchmark.R:153: @param requires two parts: an argument name and a
description.
✖ benchmark.R:154: @param requires two parts: an argument name and a
description.
✖ benchmark.R:173: @param requires two parts: an argument name and a
description.
✖ benchmark.R:174: @param requires two parts: an argument name and a
description.
✖ benchmark.R:175: @param requires two parts: an argument name and a
description.
✖ benchmark.R:176: @param requires two parts: an argument name and a
description.
✖ benchmark.R:179: @return requires a value.
✖ benchmark.R:182: @examples requires a value.
✖ calendarization.R:16: @return requires a value.
✖ mbdenton.R:95: @return requires a value.
✖ mbdenton.R:120: @return requires a value.
✖ tempdisagg.R:171: @return requires a value.
✖ tempdisagg.R:196: @return requires a value.
✖ tempdisagg.R:222: @return requires a value.
✖ tempdisagg.R:239: @return requires a value.
✖ tempdisagg.R:288: @return requires a value.
Updating vignettes
Rebuilding rjd3bench.Rmd
Error in `purrr::map2()`:
ℹ In index: 3.
Caused by error in `map_lgl()`:
ℹ In index: 1.
Caused by error in `.jcall()`:
! RcallMethod: cannot determine object class
Backtrace:
1. rjd3bench::temporaldisaggregation(Y, indicators = x, model = "Rw")
2. rJava::.jcall(...)
at rjd3bench/R/tempdisagg.R:70:3
Quitting from lines 64-68 [chow_lin_example] (rjd3bench.Rmd)
On the other hand, I can build the vignette alone:
devtools::build_vignettes()
ℹ Installing rjd3bench in temporary library
ℹ Building vignettes for rjd3bench
--- re-building 'rjd3bench.Rmd' using rmarkdown
processing file: rjd3bench.Rmd
| output file: rjd3bench.knit.md
Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "Part of the interface to 'JDemetra+ 3.0' Seasonal adjustment software related to Temporal disaggregation and Benchmarking methods", and the latter is "Temporal disaggregation and Benchmarking methods based on JDemetra+". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
Output created: rjd3bench.html
--- finished re-building 'rjd3bench.Rmd'
"C:/Users/UTZK0M/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS rjd3bench.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandoc408827ac7bde.html --lua-filter "C:\Users\UTZK0M\AppData\Local\Programs\R\R-4.4.1\library\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\UTZK0M\AppData\Local\Programs\R\R-4.4.1\library\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --section-divs --table-of-contents --toc-depth 3 --template "C:\Users\UTZK0M\AppData\Local\Programs\R\R-4.4.1\library\rmarkdown\rmd\h\default.html" --highlight-style pygments --css "C:/Users/UTZK0M/AppData/Local/Programs/R/R-4.4.1/library/rmarkdown/rmarkdown/templates/html_vignette/resources/vignette.css" --mathjax --variable "mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "C:\Users\UTZK0M\AppData\Local\Temp\RtmpumdmSH\rmarkdown-str4088780d778e.html"
ℹ Copying vignettes
ℹ Moving rjd3bench.html and rjd3bench.R to doc/
ℹ Copying rjd3bench.Rmd to doc/
ℹ Building vignette index
And there are no errors.
I get the same issue in rjd3revisions.
Hi, it seems to me that devtools does not manage to find the path of the JAVA classes to run the examples included in the vignette. In the absence of better solution, I corrected the problem by setting 'eval = FALSE' in the vignette r chunks.
Note that I do not have any error using devtools::document(roclets = c('rd', 'collate', 'namespace', 'vignette'))
. Is your JAVA_HOME environment variable correctly defined?
when building package (with doc), the following occurs :
Quitting from lines 64-68 [chow_lin_example] (rjd3bench.Rmd) Error in
purrr::map2()
: ℹ In index: 3. Caused by error inmap_lgl()
: ℹ In index: 1. Caused by error in.jcall()
: ! RcallMethod: cannot determine object class Backtrace:Exited with status 1.