gbradburd/conStruct

error creating the vignettes in conStruct

Closed this issue · 2 comments

Hi,

I am trying the install the development version of conStruct in R 4.1 on Ubuntu 20.04 LTS.

However, it is no possible create the vignettes included in the package.

This is the output of the installation:

E  creating vignettes (10m 16.1s)
   --- re-building ‘format-data.Rmd’ using rmarkdown
   Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "format-data", and the latter is "How to format data for a conStruct analysis". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
   --- finished re-building ‘format-data.Rmd’
   
   --- re-building ‘model-comparison.Rmd’ using rmarkdown
   Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "model-comparison", and the latter is "How to compare conStruct model runs". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
   --- finished re-building ‘model-comparison.Rmd’
   
   --- re-building ‘run-conStruct.Rmd’ using rmarkdown
   Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "run-conStruct", and the latter is "How to run a conStruct analysis". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
   --- finished re-building ‘run-conStruct.Rmd’
   
   --- re-building ‘visualize-results.Rmd’ using rmarkdown
   Quitting from lines 209-219 (visualize-results.Rmd) 
   Error: processing vignette 'visualize-results.Rmd' failed with diagnostics:
   there is no package called 'maps'
   --- failed re-building ‘visualize-results.Rmd’
   
   SUMMARY: processing the following file failed:
     ‘visualize-results.Rmd’
   
   Error: Vignette re-building failed.
   Execution halted
Error: Failed to install 'conStruct' from GitHub:
  System command 'R' failed, exit status: 1, stdout & stderr were printed

I try to install the package without the vignettes and works fine. The problem seems in the different names of the vignettes.

There is some solution to this error?

Thanks in advance.

Hello and sorry for the slow reply! So, it seems like there are two separate issues here. One is the warnings you get, which shouldn't prevent the creation of the vignettes (and, as per the warning message, it looks like you can suppress them with options(rmarkdown.html_vignette.check_title = FALSE)). The other issue is that the visualize-results vignette uses the R package maps. That package is on CRAN, so you should be able to install it with install.packages("maps"), at which point, if you re-install conStruct, I think it should be able to build all vignettes without any issues.

Let me know if that works, or if you have further issues!

closing this issue due to inactivity, but feel free to re-open if the issue isn't resolved.