rOpenGov / iotables

Importing and Manipulating Symmetric Input-Output Tables
https://iotables.dataobservatory.eu
Other
20 stars 8 forks source link

failed re-building ‘environmental_impact.Rmd’ #21

Closed jennybc closed 2 years ago

jennybc commented 2 years ago

I'm doing reverse dependency checks for glue and iotables is the 1 failure (out of 463).

Some vignettes fail to build. I don't think this has anything to do with glue and I'm moving forward, but thought I'd give you a head's up.

As of 2022-01-21, I see the problem is also seen on CRAN on flavours r-release-windows-ix86+x86_64 and r-oldrel-windows-ix86+x86_64. I double-checked locally and also can't rebuild (all of the?) vignettes.

The exact errors seem to vary across CRAN, my local checks, and my cloud checks, which makes me think it could be intermittent, internet-related errors? If so, that sounds like the type of code that you might not want CRAN to be executing. I'm just speculating here, though.


The way things fail for me locally:

E  creating vignettes (1m 27s)
   --- re-building ‘environmental_impact.Rmd’ using rmarkdown

   Attaching package: 'dplyr'

   The following objects are masked from 'package:stats':

       filter, lag

   The following objects are masked from 'package:base':

       intersect, setdiff, setequal, union

   trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=data%2Fenv_ac_ainah_r2.tsv.gz'
   Content type 'application/octet-stream;charset=UTF-8' length 13467635 bytes (12.8 MB)
   =============================================
   downloaded 11.8 MB

   Quitting from lines 108-109 (environmental_impact.Rmd) 
   Error: processing vignette 'environmental_impact.Rmd' failed with diagnostics:
   get_eurostat_raw fails with the id env_ac_ainah_r2
   --- failed re-building ‘environmental_impact.Rmd’

   --- re-building ‘intro.Rmd’ using rmarkdown
   Quitting from lines 88-95 (intro.Rmd) 
   Error: processing vignette 'intro.Rmd' failed with diagnostics:
   unused argument (io_table = germany_io)
   --- failed re-building ‘intro.Rmd’

   --- re-building ‘united_kingdom_2010.Rmd’ using rmarkdown

   Attaching package: 'testthat'

   The following object is masked from 'package:tidyr':

       matches

   The following object is masked from 'package:dplyr':

       matches

   --- finished re-building ‘united_kingdom_2010.Rmd’

   --- re-building ‘working_with_eurostat.Rmd’ using rmarkdown
   Columns and rows of CPA_L68A, CPA_T, CPA_U are all zeros and will be removed.
   Joining, by = c("prod_na", "CPA_A01", "CPA_A02", "CPA_A03", "CPA_B", "CPA_C10-12", "CPA_C13-15", "CPA_C16", "CPA_C17", "CPA_C18", "CPA_C19", "CPA_C20", "CPA_C21", "CPA_C22", "CPA_C23", "CPA_C24", "CPA_C25", "CPA_C26", "CPA_C27", "CPA_C28", "CPA_C29", "CPA_C30", "CPA_C31_32", "CPA_C33", "CPA_D", "CPA_E36", "CPA_E37-39", "CPA_F", "CPA_G45", "CPA_G46", "CPA_H49", "CPA_H50", "CPA_H51", "CPA_H52", "CPA_H53", "CPA_I", "CPA_J58", "CPA_J59_60", "CPA_J61", "CPA_J62_63", "CPA_K64", "CPA_K65", "CPA_K66", "CPA_L68B", "CPA_M69_70", "CPA_M71", "CPA_M72", "CPA_M73", "CPA_M74_75", "CPA_N77", "CPA_N78", "CPA_N79", "CPA_N80-82", "CPA_O", "CPA_P", "CPA_Q86", "CPA_Q87_88", "CPA_R90-92", "CPA_R93", "CPA_S94", "CPA_S95", "CPA_S96")
   Columns and rows of CPA_L68A are all zeros and will be removed.
   Quitting from lines 340-348 (working_with_eurostat.Rmd) 
   Error: processing vignette 'working_with_eurostat.Rmd' failed with diagnostics:
   unused argument (io_table = cz_io)
   --- failed re-building ‘working_with_eurostat.Rmd’

   SUMMARY: processing the following files failed:
     ‘environmental_impact.Rmd’ ‘intro.Rmd’ ‘working_with_eurostat.Rmd’

   Error: Vignette re-building failed.
   Execution halted
jennybc commented 2 years ago

Here's what I see in my cloud checks, which is at least roughly similar to what I saw locally and what CRAN sees. I haven't scrutinized it in detail.


* checking running R code from vignettes ...
--
‘environmental_impact.Rmd’ using ‘UTF-8’... OK
‘intro.Rmd’ using ‘UTF-8’... OK
‘united_kingdom_2010.Rmd’ using ‘UTF-8’... OK
‘working_with_eurostat.Rmd’ using ‘UTF-8’... OK
NONE
* checking re-building of vignette outputs ... WARNING
Error(s) in re-building vignettes:
--- re-building ‘environmental_impact.Rmd’ using rmarkdown
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
trying URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&file=data%2Fenv_ac_ainah_r2.tsv.gz'
Content type 'application/octet-stream;charset=UTF-8' length 13467635 bytes (12.8 MB)
=====================
downloaded 5.6 MB
Quitting from lines 105-106 (environmental_impact.Rmd)
Error: processing vignette 'environmental_impact.Rmd' failed with diagnostics:
get_eurostat_raw fails with the id env_ac_ainah_r2
--- failed re-building ‘environmental_impact.Rmd’
--- re-building ‘intro.Rmd’ using rmarkdown
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Warning in eval(parse_only(code), envir = envir) :
NAs introduced by coercion
--- finished re-building ‘intro.Rmd’
--- re-building ‘united_kingdom_2010.Rmd’ using rmarkdown
--- finished re-building ‘united_kingdom_2010.Rmd’
--- re-building ‘working_with_eurostat.Rmd’ using rmarkdown
Columns and rows of CPA_L68A, CPA_T, CPA_U are all zeros and will be removed.
Joining, by = c("prod_na", "CPA_A01", "CPA_A02", "CPA_A03", "CPA_B", "CPA_C10-12", "CPA_C13-15", "CPA_C16", "CPA_C17", "CPA_C18", "CPA_C19", "CPA_C20", "CPA_C21", "CPA_C22", "CPA_C23", "CPA_C24", "CPA_C25", "CPA_C26", "CPA_C27", "CPA_C28", "CPA_C29", "CPA_C30", "CPA_C31_32", "CPA_C33", "CPA_D", "CPA_E36", "CPA_E37-39", "CPA_F", "CPA_G45", "CPA_G46", "CPA_H49", "CPA_H50", "CPA_H51", "CPA_H52", "CPA_H53", "CPA_I", "CPA_J58", "CPA_J59_60", "CPA_J61", "CPA_J62_63", "CPA_K64", "CPA_K65", "CPA_K66", "CPA_L68B", "CPA_M69_70", "CPA_M71", "CPA_M72", "CPA_M73", "CPA_M74_75", "CPA_N77", "CPA_N78", "CPA_N79", "CPA_N80-82", "CPA_O", "CPA_P", "CPA_Q86", "CPA_Q87_88", "CPA_R90-92", "CPA_R93", "CPA_S94", "CPA_S95", "CPA_S96")
Columns and rows of CPA_L68A are all zeros and will be removed.
--- finished re-building ‘working_with_eurostat.Rmd’
SUMMARY: processing the following file failed:
‘environmental_impact.Rmd’
Error: Vignette re-building failed.
antaldaniel commented 2 years ago

Thank you very much @jennybc , the entire documentation needed a lot of improvements and seems to work fine with new 0.9.1. version that I am sending for review to CRAN right now.