r-quantities / units

Measurement units for R
https://r-quantities.github.io/units
173 stars 27 forks source link

Release units 0.7-2 #284

Closed Enchufa2 closed 3 years ago

Enchufa2 commented 3 years ago

@edzer With #277, we're ready for a new release. cc/ https://github.com/r-lib/pillar/issues/313

edzer commented 3 years ago

Submitted!

edzer commented 3 years ago

The revdep checks on CRAN create quite a lot of noise; I will look into those caused by stars.

``` Dear maintainer, package units_0.7-2.tar.gz has been auto-processed. The auto-check found problems when checking the first order strong reverse dependencies. Please reply-all and explain: Is this expected or do you need to fix anything in your package? If expected, have all maintainers of affected packages been informed well in advance? Are there false positives in our results? *** Changes to worse in reverse dependencies *** Debian: Log dir: The files will be removed after roughly 7 days. Pretests: Windows: Debian: Last published version on CRAN: CRAN Web: Best regards, CRAN teams' auto-check service Package check result: OK Changes to worse in reverse depends: Package: eplusr Check: examples New result: ERROR Running examples in ‘eplusr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: is_eplus_ver > ### Title: Check for Idd, Idf and Epw objects > ### Aliases: is_eplus_ver is_idd_ver is_eplus_path is_idd is_idf > ### is_iddobject is_idfobject is_epw > > ### ** Examples > > is_eplus_ver(8.8) [1] TRUE > is_eplus_ver(8.0) [1] TRUE > is_eplus_ver("latest", strict = FALSE) [1] TRUE > > is_idd_ver("9.0.1") [1] TRUE > is_idd_ver("8.0.1") [1] FALSE > > is_eplus_path("C:/EnergyPlusV9-0-0") [1] FALSE > is_eplus_path("/usr/local/EnergyPlus-9-0-1") [1] FALSE > > is_idd(use_idd(8.8, download = "auto")) IDD v8.8.0 has not been parsed before. Try to locate 'Energy+.idd' in EnergyPlus v8.8.0 installation folder '/usr/local/EnergyPlus-8-8-0'. Failed to locate 'Energy+.idd' because EnergyPlus v8.8.0 is not available. Starting to download the IDD file from EnergyPlus GitHub repo... trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Warning in utils::download.file(url, dest, mode = "wb") : cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd': HTTP status was '502 Bad Gateway' Error in utils::download.file(url, dest, mode = "wb") : cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Calls: is_idd ... use_idd -> download_idd -> download_file -> Execution halted Package: eplusr Check: tests New result: ERROR Running ‘testthat.R’ [12s/12s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(eplusr) > eplusr_option(verbose_info = FALSE) $verbose_info [1] FALSE > > test_check("eplusr") trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' trying URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' ══ Skipped tests ═══════════════════════════════════════════════════════════════ • On CRAN (59) ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error (test-assert.R:33:5): Assertion functions ───────────────────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. ├─testthat::expect_true(is_idd(use_idd(8.8, download = "auto"))) test-assert.R:33:4 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─eplusr::is_idd(use_idd(8.8, download = "auto")) 5. │ └─checkmate::test_r6(x, "Idd") 6. │ ├─base::isTRUE(...) 7. │ └─checkmate::checkR6(...) 8. └─eplusr::use_idd(8.8, download = "auto") 9. └─eplusr::download_idd(ver, dir = tempdir()) 10. └─eplusr:::download_file(url, dest) 11. └─utils::download.file(url, dest, mode = "wb") ── Error (test-iddobj.R:262:5): IddObject class ──────────────────────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. ├─testthat::expect_equal(...) test-iddobj.R:262:4 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::nrow(res <- use_idd(8.8, "auto")$Lights$outputs()) 5. └─eplusr::use_idd(8.8, "auto") 6. └─eplusr::download_idd(ver, dir = tempdir()) 7. └─eplusr:::download_file(url, dest) 8. └─utils::download.file(url, dest, mode = "wb") ── Error (test-idf.R:2:1): (code run outside of `test_that()`) ───────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. └─eplusr::use_idd(8.8, "auto") test-idf.R:2:0 2. └─eplusr::download_idd(ver, dir = tempdir()) 3. └─eplusr:::download_file(url, dest) 4. └─utils::download.file(url, dest, mode = "wb") ── Error (test-idfobj.R:1:1): (code run outside of `test_that()`) ────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. └─eplusr::use_idd(8.8, "auto") test-idfobj.R:1:0 2. └─eplusr::download_idd(ver, dir = tempdir()) 3. └─eplusr:::download_file(url, dest) 4. └─utils::download.file(url, dest, mode = "wb") ── Error (test-impl-idd.R:279:5): Idd implementation ─────────────────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. └─eplusr::use_idd(8.8, "auto") test-impl-idd.R:279:4 2. └─eplusr::download_idd(ver, dir = tempdir()) 3. └─eplusr:::download_file(url, dest) 4. └─utils::download.file(url, dest, mode = "wb") ── Error (test-impl-idf.R:2:1): (code run outside of `test_that()`) ──────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. └─eplusr::use_idd(8.8, "auto") test-impl-idf.R:2:0 2. └─eplusr::download_idd(ver, dir = tempdir()) 3. └─eplusr:::download_file(url, dest) 4. └─utils::download.file(url, dest, mode = "wb") ── Error (test-impl-idfobj.R:1:1): (code run outside of `test_that()`) ───────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. └─eplusr::use_idd(8.8, "auto") test-impl-idfobj.R:1:0 2. └─eplusr::download_idd(ver, dir = tempdir()) 3. └─eplusr:::download_file(url, dest) 4. └─utils::download.file(url, dest, mode = "wb") ── Error (test-parse.R:415:5): parse_idf_file() ──────────────────────────────── Error: Failed to locate IDD v8.8.0. You may want to set 'download' to TRUE or "auto" to download the IDD file from EnregyPlus GitHub repo. Backtrace: █ 1. ├─testthat::expect_warning(...) test-parse.R:415:4 2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings) 3. │ ├─testthat:::.capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─eplusr:::parse_idf_file(idftext("idf"), 8.8) 7. └─eplusr:::get_idd_from_ver(idf_ver, idd) 8. └─eplusr::use_idd(idd) 9. └─eplusr:::abort(...) ── Error (test-transition.R:4:5): Transition Helper ──────────────────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. ├─eplusr::read_idf(example(), use_idd(8.8, "auto")) test-transition.R:4:4 2. │ └─Idf$new(path, idd) 3. │ └─eplusr:::initialize(...) 4. │ └─eplusr:::parse_idf_file(path, idd) 5. │ └─eplusr:::get_idd_from_ver(idf_ver, idd) 6. └─eplusr::use_idd(8.8, "auto") 7. └─eplusr::download_idd(ver, dir = tempdir()) 8. └─eplusr:::download_file(url, dest) 9. └─utils::download.file(url, dest, mode = "wb") ── Error (test-validate.R:3:5): Validate method ──────────────────────────────── Error: cannot open URL 'https://raw.githubusercontent.com/NREL/EnergyPlus/v9.4.0/idd/V8-8-0-Energy%2B.idd' Backtrace: █ 1. ├─eplusr::read_idf(example(), use_idd(8.8, "auto")) test-validate.R:3:4 2. │ └─Idf$new(path, idd) 3. │ └─eplusr:::initialize(...) 4. │ └─eplusr:::parse_idf_file(path, idd) 5. │ └─eplusr:::get_idd_from_ver(idf_ver, idd) 6. └─eplusr::use_idd(8.8, "auto") 7. └─eplusr::download_idd(ver, dir = tempdir()) 8. └─eplusr:::download_file(url, dest) 9. └─utils::download.file(url, dest, mode = "wb") [ FAIL 10 | WARN 10 | SKIP 59 | PASS 738 ] Error: Test failures Execution halted Package: gtfstools Check: tests New result: ERROR Running ‘testthat.R’ [10s/15s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(gtfstools) > > test_check("gtfstools") ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error (test-read_gtfs.R:65:3): raises warnings and messages adequately ────── Error: cannot open URL 'https://github.com/ipeaGIT/gtfstools/raw/master/inst/extdata/spo_gtfs.zip' Backtrace: █ 1. ├─testthat::expect_silent(read_gtfs(gtfs_url)) test-read_gtfs.R:65:2 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat:::.capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─gtfstools::read_gtfs(gtfs_url) 10. └─utils::download.file(path, temp_file, method = "auto", quiet = quiet) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 488 ] Error: Test failures Execution halted Package: sfnetworks Check: re-building of vignette outputs New result: WARNING Error(s) in re-building vignettes: ... --- re-building ‘join_filter.Rmd’ using rmarkdown Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1 Attaching package: 'tidygraph' The following object is masked from 'package:stats': filter ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ✔ ggplot2 3.3.3 ✔ purrr  0.3.4 ✔ tibble  3.1.2 ✔ dplyr  1.0.6 ✔ tidyr  1.1.3 ✔ stringr 1.4.0 ✔ readr  1.4.0 ✔ forcats 0.5.1 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ dplyr::filter() masks tidygraph::filter(), stats::filter() ✖ dplyr::lag() masks stats::lag() Attaching package: 'igraph' The following objects are masked from 'package:dplyr': as_data_frame, groups, union The following objects are masked from 'package:purrr': compose, simplify The following object is masked from 'package:tidyr': crossing The following object is masked from 'package:tibble': as_data_frame The following object is masked from 'package:tidygraph': groups The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union --- finished re-building ‘join_filter.Rmd’ --- re-building ‘morphers.Rmd’ using rmarkdown Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1 Attaching package: 'tidygraph' The following object is masked from 'package:stats': filter ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ✔ ggplot2 3.3.3 ✔ purrr  0.3.4 ✔ tibble  3.1.2 ✔ dplyr  1.0.6 ✔ tidyr  1.1.3 ✔ stringr 1.4.0 ✔ readr  1.4.0 ✔ forcats 0.5.1 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ dplyr::filter() masks tidygraph::filter(), stats::filter() ✖ dplyr::lag() masks stats::lag() Attaching package: 'igraph' The following objects are masked from 'package:dplyr': as_data_frame, groups, union The following objects are masked from 'package:purrr': compose, simplify The following object is masked from 'package:tidyr': crossing The following object is masked from 'package:tibble': as_data_frame The following object is masked from 'package:tidygraph': groups The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union --- finished re-building ‘morphers.Rmd’ --- re-building ‘preprocess_and_clean.Rmd’ using rmarkdown Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1 Attaching package: 'tidygraph' The following object is masked from 'package:stats': filter ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ✔ ggplot2 3.3.3 ✔ purrr  0.3.4 ✔ tibble  3.1.2 ✔ dplyr  1.0.6 ✔ tidyr  1.1.3 ✔ stringr 1.4.0 ✔ readr  1.4.0 ✔ forcats 0.5.1 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ dplyr::filter() masks tidygraph::filter(), stats::filter() ✖ dplyr::lag() masks stats::lag() Attaching package: 'igraph' The following objects are masked from 'package:dplyr': as_data_frame, groups, union The following objects are masked from 'package:purrr': compose, simplify The following object is masked from 'package:tidyr': crossing The following object is masked from 'package:tibble': as_data_frame The following object is masked from 'package:tidygraph': groups The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union --- finished re-building ‘preprocess_and_clean.Rmd’ --- re-building ‘routing.Rmd’ using rmarkdown Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1 Attaching package: 'tidygraph' The following object is masked from 'package:stats': filter ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ✔ ggplot2 3.3.3 ✔ purrr  0.3.4 ✔ tibble  3.1.2 ✔ dplyr  1.0.6 ✔ tidyr  1.1.3 ✔ stringr 1.4.0 ✔ readr  1.4.0 ✔ forcats 0.5.1 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ dplyr::filter() masks tidygraph::filter(), stats::filter() ✖ dplyr::lag() masks stats::lag() Warning: The `add` argument of `group_by()` is deprecated as of dplyr 1.0.0. Please use the `.add` argument instead. This warning is displayed once every 8 hours. Call `lifecycle::last_warnings()` to see where this warning was generated. --- finished re-building ‘routing.Rmd’ --- re-building ‘structure.Rmd’ using rmarkdown Linking to GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1 Attaching package: 'tidygraph' The following object is masked from 'package:stats': filter ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.1 ── ✔ ggplot2 3.3.3 ✔ purrr  0.3.4 ✔ tibble  3.1.2 ✔ dplyr  1.0.6 ✔ tidyr  1.1.3 ✔ stringr 1.4.0 ✔ readr  1.4.0 ✔ forcats 0.5.1 ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ── ✖ dplyr::filter() masks tidygraph::filter(), stats::filter() ✖ dplyr::lag() masks stats::lag() Attaching package: 'igraph' The following objects are masked from 'package:dplyr': as_data_frame, groups, union The following objects are masked from 'package:purrr': compose, simplify The following object is masked from 'package:tidyr': crossing The following object is masked from 'package:tibble': as_data_frame The following object is masked from 'package:tidygraph': groups The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union Quitting from lines 156-160 (structure.Rmd) Error: processing vignette 'structure.Rmd' failed with diagnostics: cannot open the connection to ‘https://raw.githubusercontent.com/ComplexNetTSP/Power_grids/v1.0.0/Countries/Netherlands/graphml/Netherlands_highvoltage.graphml’ --- failed re-building ‘structure.Rmd’ SUMMARY: processing the following file failed: ‘structure.Rmd’ Error: Vignette re-building failed. Execution halted Package: stars Check: examples New result: ERROR Running examples in ‘stars-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: st_dimensions > ### Title: get dimensions from stars object > ### Aliases: st_dimensions st_dimensions.stars st_dimensions<- > ### st_dimensions<-.stars st_dimensions<-.list st_dimensions.array > ### st_dimensions.default st_set_dimensions st_get_dimension_values > > ### ** Examples > > x = read_stars(system.file("tif/L7_ETMs.tif", package = "stars")) > # Landsat 7 ETM+ band semantics: https://landsat.gsfc.nasa.gov/the-enhanced-thematic-mapper-plus/ > # set bands to values 1,2,3,4,5,7: > (x1 = st_set_dimensions(x, "band", values = c(1,2,3,4,5,7), names = "band_number", point = TRUE)) stars object with 3 dimensions and 1 attribute attribute(s): L7_ETMs.tif Min. : 1.00 1st Qu.: 54.00 Median : 69.00 Mean : 68.91 3rd Qu.: 86.00 Max. :255.00 dimension(s): from to offset delta refsys point values x 1 349 288776 28.5 UTM Zone 25, Southern Hem... FALSE NULL y 1 352 9120761 -28.5 UTM Zone 25, Southern Hem... FALSE NULL band_number 1 6 NA NA NA TRUE 1,...,7 x/y x [x] y [y] band_number > # set band values as bandwidth > rbind(c(0.45,0.515), c(0.525,0.605), c(0.63,0.69), c(0.775,0.90), c(1.55,1.75), c(2.08,2.35)) %>% + units::set_units("um") -> bw # or: units::set_units(µm) -> bw > # set bandwidth midpoint: > (x2 = st_set_dimensions(x, "band", values = 0.5 * (bw[,1]+bw[,2]), + names = "bandwidth_midpoint", point = TRUE)) Error in Ops.units(abs(diff(range(ud))/mean(ud)), epsilon) : both operands of the expression should be "units" objects Calls: st_set_dimensions ... create_dimension -> regular_intervals -> isTRUE -> Ops.units Execution halted Package: stars Check: re-building of vignette outputs New result: WARNING Error(s) in re-building vignettes: ... --- re-building ‘stars1.Rmd’ using rmarkdown Quitting from lines 290-301 (stars1.Rmd) Error: processing vignette 'stars1.Rmd' failed with diagnostics: both operands of the expression should be "units" objects --- failed re-building ‘stars1.Rmd’ --- re-building ‘stars2.Rmd’ using rmarkdown --- finished re-building ‘stars2.Rmd’ --- re-building ‘stars3.Rmd’ using rmarkdown --- finished re-building ‘stars3.Rmd’ --- re-building ‘stars4.Rmd’ using rmarkdown --- finished re-building ‘stars4.Rmd’ --- re-building ‘stars5.Rmd’ using rmarkdown Quitting from lines 28-35 (stars5.Rmd) Error: processing vignette 'stars5.Rmd' failed with diagnostics: both operands of the expression should be "units" objects --- failed re-building ‘stars5.Rmd’ --- re-building ‘stars6.Rmd’ using rmarkdown --- finished re-building ‘stars6.Rmd’ --- re-building ‘stars7.Rmd’ using rmarkdown --- finished re-building ‘stars7.Rmd’ SUMMARY: processing the following files failed: ‘stars1.Rmd’ ‘stars5.Rmd’ Error: Vignette re-building failed. Execution halted Package: stars Check: tests New result: ERROR Running ‘aggregate.R’ [2s/2s] Comparing ‘aggregate.Rout’ to ‘aggregate.Rout.save’ ...70c70 < file42f317a28eb9.tif --- > file311327eac9a8d.tif Running ‘area.R’ [1s/1s] Comparing ‘area.Rout’ to ‘area.Rout.save’ ...66a67,84 > /PRODUCT/longitude, > /PRODUCT/latitude, > /PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/nitrogendioxide_summed_total_column, > stars object with 2 dimensions and 1 attribute > attribute(s): > area [m^2] > Min. : 25990150 > 1st Qu.: 28050933 > Median : 35705689 > Mean : 42968454 > 3rd Qu.: 54640139 > Max. :101184840 > dimension(s): > from to offset delta refsys point values x/y > x 1 450 NA NA WGS 84 NA [450x278] -5.81066 [°],...,30.9468 [°] [x] > y 1 278 NA NA WGS 84 NA [450x278] 28.3605 [°],...,51.4686 [°] [y] > curvilinear grid > There were 15 warnings (use warnings() to see them) Running ‘crop.R’ [2s/2s] Comparing ‘crop.Rout’ to ‘crop.Rout.save’ ... OK Running ‘curvilinear.R’ [1s/1s] Comparing ‘curvilinear.Rout’ to ‘curvilinear.Rout.save’ ...54a55,96 > /PRODUCT/longitude, > /PRODUCT/latitude, > /PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/nitrogendioxide_summed_total_column, > stars object with 3 dimensions and 1 attribute > attribute(s): > nitrogendioxide_summed_total_column > Min. :0e+00 > 1st Qu.:1e-04 > Median :1e-04 > Mean :1e-04 > 3rd Qu.:1e-04 > Max. :5e-04 > NA's :330 > dimension(s): > from to offset delta refsys point values > x 1 450 NA NA WGS 84 NA [450x278] -5.81066 [°],...,30.9468 [°] > y 1 278 NA NA WGS 84 NA [450x278] 28.3605 [°],...,51.4686 [°] > time 1 1 NA NA NA NA NULL > x/y > x [x] > y [y] > time > curvilinear grid > stars object with 3 dimensions and 1 attribute > attribute(s): > nitrogendioxide_summed_total_column > Min. :0.00005 > 1st Qu.:0.00008 > Median :0.00008 > Mean :0.00009 > 3rd Qu.:0.00009 > Max. :0.00023 > NA's :37 > dimension(s): > from to offset delta refsys point values x/y > x 1 57 NA NA WGS 84 NA [57x35] -5.81066 [°],...,30.8108 [°] [x] > y 1 35 NA NA WGS 84 NA [57x35] 28.6622 [°],...,51.4679 [°] [y] > time 1 1 NA NA NA NA NULL > curvilinear grid > null device > 1 > There were 15 warnings (use warnings() to see them) Running ‘dimensions.R’ [2s/2s] Comparing ‘dimensions.Rout’ to ‘dimensions.Rout.save’ ... OK Running ‘extract.R’ [1s/1s] Comparing ‘extract.Rout’ to ‘extract.Rout.save’ ... OK Running ‘gridtypes.R’ [1s/1s] Comparing ‘gridtypes.Rout’ to ‘gridtypes.Rout.save’ ... OK Running ‘nc.R’ [1s/1s] Comparing ‘nc.Rout’ to ‘nc.Rout.save’ ... OK Running ‘plot.R’ [2s/2s] Comparing ‘plot.Rout’ to ‘plot.Rout.save’ ... OK Running ‘predict.R’ [3s/3s] Comparing ‘predict.Rout’ to ‘predict.Rout.save’ ... OK Running ‘proxy.R’ [3s/3s] Comparing ‘proxy.Rout’ to ‘proxy.Rout.save’ ...291a292,381 > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > stars_proxy object with 2 attributes in 18 file(s): > $sst > [1] "[...]/avhrr-only-v2.19810901.nc:sst" "[...]/avhrr-only-v2.19810902.nc:sst" > [3] "[...]/avhrr-only-v2.19810903.nc:sst" "[...]/avhrr-only-v2.19810904.nc:sst" > [5] "[...]/avhrr-only-v2.19810905.nc:sst" "[...]/avhrr-only-v2.19810906.nc:sst" > [7] "[...]/avhrr-only-v2.19810907.nc:sst" "[...]/avhrr-only-v2.19810908.nc:sst" > [9] "[...]/avhrr-only-v2.19810909.nc:sst" > > $anom > [1] "[...]/avhrr-only-v2.19810901.nc:anom" > [2] "[...]/avhrr-only-v2.19810902.nc:anom" > [3] "[...]/avhrr-only-v2.19810903.nc:anom" > [4] "[...]/avhrr-only-v2.19810904.nc:anom" > [5] "[...]/avhrr-only-v2.19810905.nc:anom" > [6] "[...]/avhrr-only-v2.19810906.nc:anom" > [7] "[...]/avhrr-only-v2.19810907.nc:anom" > [8] "[...]/avhrr-only-v2.19810908.nc:anom" > [9] "[...]/avhrr-only-v2.19810909.nc:anom" > > dimension(s): > from to offset delta refsys point values x/y > x 1 1440 0 0.25 NA NA NULL [x] > y 1 720 90 -0.25 NA NA NULL [y] > zlev 1 1 0 [m] NA NA NA NULL > time 1 9 1981-09-01 UTC 1 days POSIXct NA NULL > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > sst, anom, > stars object with 4 dimensions and 2 attributes > attribute(s), summary of first 1e+05 cells: > sst [C*°] anom [C*°] > Min. :-1.80 Min. :-4.69 > 1st Qu.:-1.19 1st Qu.:-0.06 > Median :-1.05 Median : 0.52 > Mean :-0.32 Mean : 0.23 > 3rd Qu.:-0.20 3rd Qu.: 0.71 > Max. : 9.36 Max. : 3.70 > NA's :13360 NA's :13360 > dimension(s): > from to offset delta refsys point values x/y > x 1 1440 0 0.25 NA NA NULL [x] > y 1 720 90 -0.25 NA NA NULL [y] > zlev 1 1 0 [m] NA NA NA NULL > time 1 9 1981-09-01 UTC 1 days POSIXct NA NULL > stars object with 5 dimensions and 1 attribute > attribute(s), summary of first 1e+05 cells: > sst.anom > Min. :-1.80 > 1st Qu.:-1.19 > Median :-1.05 > Mean :-0.32 > 3rd Qu.:-0.20 > Max. : 9.36 > NA's :13360 > dimension(s): > from to offset delta refsys point values x/y > x 1 1440 0 0.25 NA NA NULL [x] > y 1 720 90 -0.25 NA NA NULL [y] > zlev 1 1 0 [m] NA NA NA NULL > time 1 9 1981-09-01 UTC 1 days POSIXct NA NULL > new_dim 1 2 NA NA NA NA sst , anom > Error in c.stars_proxy(l[[1]], l[[2]], l[[3]], along = list(times = as.Date("1981-09-01") + : > for proxy objects, along argument as list is not implemented > stars_proxy object with 1 attribute in 2 file(s): > $sst.anom > [1] "[...]/avhrr-only-v2.19810901.nc:sst" > [2] "[...]/avhrr-only-v2.19810901.nc:anom" > > dimension(s): > from to offset delta refsys point values x/y > x 1 1440 0 0.25 NA NA NULL [x] > y 1 720 90 -0.25 NA NA NULL [y] > zlev 1 1 0 [m] NA NA NA NULL > time 1 1 1981-09-01 UTC NA POSIXct NA NULL > times 1 2 1981-09-01 1 days Date NA NULL Running ‘raster.R’ [2s/2s] Comparing ‘raster.Rout’ to ‘raster.Rout.save’ ...85c85 < source : L7_ETMs.tif --- > source : /home/edzer/git/stars.Rcheck/stars/tif/L7_ETMs.tif Running ‘rasterize.R’ [1s/1s] Comparing ‘rasterize.Rout’ to ‘rasterize.Rout.save’ ... OK Running ‘rectilinear.R’ [1s/1s] Comparing ‘rectilinear.Rout’ to ‘rectilinear.Rout.save’ ... OK Running ‘redimension.R’ [1s/1s] Comparing ‘redimension.Rout’ to ‘redimension.Rout.save’ ... OK Running ‘sf.R’ [1s/1s] Comparing ‘sf.Rout’ to ‘sf.Rout.save’ ... OK Running ‘sp.R’ [1s/1s] Comparing ‘sp.Rout’ to ‘sp.Rout.save’ ... OK Running ‘spacetime.R’ [2s/2s] Comparing ‘spacetime.Rout’ to ‘spacetime.Rout.save’ ... OK Running ‘spatstat.R’ [2s/2s] Comparing ‘spatstat.Rout’ to ‘spatstat.Rout.save’ ... OK Running ‘stars.R’ [2s/2s] Running ‘subset.R’ [1s/1s] Comparing ‘subset.Rout’ to ‘subset.Rout.save’ ... OK Running ‘testthat.R’ [9s/8s] Comparing ‘testthat.Rout’ to ‘testthat.Rout.save’ ...9d8 < [ FAIL 0 | WARN 0 | SKIP 0 | PASS 100 ] Running ‘tidy.R’ [4s/4s] Comparing ‘tidy.Rout’ to ‘tidy.Rout.save’ ... OK Running ‘transform.R’ [1s/1s] Comparing ‘transform.Rout’ to ‘transform.Rout.save’ ... OK Running ‘warp.R’ [1s/1s] Comparing ‘warp.Rout’ to ‘warp.Rout.save’ ... OK Running ‘write.R’ [1s/1s] Comparing ‘write.Rout’ to ‘write.Rout.save’ ... OK Running the tests in ‘tests/stars.R’ failed. Complete output: > Sys.setenv(TZ="UTC") > suppressPackageStartupMessages(library(stars)) > set.seed(13521) # runif > tif = system.file("tif/L7_ETMs.tif", package = "stars") > (x_ = read_stars(c(tif,tif))) # FIXME: not what you'd expect stars object with 3 dimensions and 2 attributes attribute(s): L7_ETMs.tif L7_ETMs.tif.1 Min. : 1.00 Min. : 1.00 1st Qu.: 54.00 1st Qu.: 54.00 Median : 69.00 Median : 69.00 Mean : 68.91 Mean : 68.91 3rd Qu.: 86.00 3rd Qu.: 86.00 Max. :255.00 Max. :255.00 dimension(s): from to offset delta refsys point values x/y x 1 349 288776 28.5 UTM Zone 25, Southern Hem... FALSE NULL [x] y 1 352 9120761 -28.5 UTM Zone 25, Southern Hem... FALSE NULL [y] band 1 6 NA NA NA NA NULL > (x = read_stars(tif)) stars object with 3 dimensions and 1 attribute attribute(s): L7_ETMs.tif Min. : 1.00 1st Qu.: 54.00 Median : 69.00 Mean : 68.91 3rd Qu.: 86.00 Max. :255.00 dimension(s): from to offset delta refsys point values x/y x 1 349 288776 28.5 UTM Zone 25, Southern Hem... FALSE NULL [x] y 1 352 9120761 -28.5 UTM Zone 25, Southern Hem... FALSE NULL [y] band 1 6 NA NA NA NA NULL > image(x) > gdal_crs(tif) Coordinate Reference System: User input: PROJCS["UTM Zone 25, Southern Hemisphere",GEOGCS["GRS 1980(IUGG, 1980)",DATUM["unknown",SPHEROID["GRS80",6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-33],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",10000000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["Easting",EAST],AXIS["Northing",NORTH]] wkt: BOUNDCRS[ SOURCECRS[ PROJCRS["UTM Zone 25, Southern Hemisphere", BASEGEOGCRS["GRS 1980(IUGG, 1980)", DATUM["unknown", ELLIPSOID["GRS80",6378137,298.257222101, LENGTHUNIT["metre",1, ID["EPSG",9001]]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433, ID["EPSG",9122]]]], CONVERSION["UTM zone 25S", METHOD["Transverse Mercator", ID["EPSG",9807]], PARAMETER["Latitude of natural origin",0, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8801]], PARAMETER["Longitude of natural origin",-33, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8802]], PARAMETER["Scale factor at natural origin",0.9996, SCALEUNIT["unity",1], ID["EPSG",8805]], PARAMETER["False easting",500000, LENGTHUNIT["metre",1], ID["EPSG",8806]], PARAMETER["False northing",10000000, LENGTHUNIT["metre",1], ID["EPSG",8807]], ID["EPSG",17025]], CS[Cartesian,2], AXIS["easting",east, ORDER[1], LENGTHUNIT["metre",1, ID["EPSG",9001]]], AXIS["northing",north, ORDER[2], LENGTHUNIT["metre",1, ID["EPSG",9001]]]]], TARGETCRS[ GEOGCRS["WGS 84", DATUM["World Geodetic System 1984", ELLIPSOID["WGS 84",6378137,298.257223563, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], CS[ellipsoidal,2], AXIS["latitude",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]], AXIS["longitude",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]], ID["EPSG",4326]]], ABRIDGEDTRANSFORMATION["Transformation from GRS 1980(IUGG, 1980) to WGS84", METHOD["Position Vector transformation (geog2D domain)", ID["EPSG",9606]], PARAMETER["X-axis translation",0, ID["EPSG",8605]], PARAMETER["Y-axis translation",0, ID["EPSG",8606]], PARAMETER["Z-axis translation",0, ID["EPSG",8607]], PARAMETER["X-axis rotation",0, ID["EPSG",8608]], PARAMETER["Y-axis rotation",0, ID["EPSG",8609]], PARAMETER["Z-axis rotation",0, ID["EPSG",8610]], PARAMETER["Scale difference",1, ID["EPSG",8611]]]] > plot(x) > plot(x, join_zlim = FALSE) > x %>% st_set_dimensions(names = c('a', 'b', 'c')) stars object with 3 dimensions and 1 attribute attribute(s): L7_ETMs.tif Min. : 1.00 1st Qu.: 54.00 Median : 69.00 Mean : 68.91 3rd Qu.: 86.00 Max. :255.00 dimension(s): from to offset delta refsys point values x/y a 1 349 288776 28.5 UTM Zone 25, Southern Hem... FALSE NULL [x] b 1 352 9120761 -28.5 UTM Zone 25, Southern Hem... FALSE NULL [y] c 1 6 NA NA NA NA NULL > st_get_dimension_values(x, 3) [1] 1 2 3 4 5 6 > > (x1 = st_set_dimensions(x, "band", values = c(1,2,3,4,5,7), names = "band_number", point = TRUE)) stars object with 3 dimensions and 1 attribute attribute(s): L7_ETMs.tif Min. : 1.00 1st Qu.: 54.00 Median : 69.00 Mean : 68.91 3rd Qu.: 86.00 Max. :255.00 dimension(s): from to offset delta refsys point values x 1 349 288776 28.5 UTM Zone 25, Southern Hem... FALSE NULL y 1 352 9120761 -28.5 UTM Zone 25, Southern Hem... FALSE NULL band_number 1 6 NA NA NA TRUE 1,...,7 x/y x [x] y [y] band_number > rbind(c(0.45,0.515), c(0.525,0.605), c(0.63,0.69), c(0.775,0.90), c(1.55,1.75), c(2.08,2.35)) %>% + units::set_units(um) -> bw # units::set_units(µm) -> bw > # set bandwidth midpoint: > (x2 = st_set_dimensions(x, "band", values = 0.5 * (bw[,1]+bw[,2]), + names = "bandwidth_midpoint", point = TRUE)) Error in Ops.units(abs(diff(range(ud))/mean(ud)), epsilon) : both operands of the expression should be "units" objects Calls: st_set_dimensions ... create_dimension -> regular_intervals -> isTRUE -> Ops.units Execution halted Package: starsExtra Check: examples New result: ERROR Running examples in ‘starsExtra-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: aspect > ### Title: Calculate topographic aspect from a DEM > ### Aliases: aspect > > ### ** Examples > > # Small example > data(dem) > dem_aspect = aspect(dem) > plot( + dem, text_values = TRUE, breaks = "equal", + col = hcl.colors(11, "Spectral"), main = "input (elevation)" + ) > plot( + dem_aspect, text_values = TRUE, breaks = "equal", + col = hcl.colors(11, "Spectral"), main = "output (aspect)" + ) Error in Ops.units(at, br[1]) : both operands of the expression should be "units" objects Calls: plot -> plot.stars -> .image_scale -> Ops.units Execution halted Package: starsExtra Check: re-building of vignette outputs New result: WARNING Error(s) in re-building vignettes: ... --- re-building ‘intro.Rmd’ using rmarkdown Quitting from lines 103-105 (intro.Rmd) Error: processing vignette 'intro.Rmd' failed with diagnostics: both operands of the expression should be "units" objects --- failed re-building ‘intro.Rmd’ SUMMARY: processing the following file failed: ‘intro.Rmd’ Error: Vignette re-building failed. Execution halted ```
Enchufa2 commented 3 years ago

Except for the stars errors, all the others seem to be Internet connection problems, nothing related to units.

edzer commented 3 years ago

on CRAN now!