climate icon indicating copy to clipboard operation
climate copied to clipboard

77 cran policy

Open bczernecki opened this issue 3 years ago • 4 comments

closes #77

bczernecki avatar Aug 22 '22 13:08 bczernecki

Codecov Report

Base: 90.42% // Head: 82.10% // Decreases project coverage by -8.31% :warning:

Coverage data is based on head (9d709a1) compared to base (3913066). Patch coverage: 61.61% of modified lines in pull request are covered.

:exclamation: Current head 9d709a1 differs from pull request most recent head 451e136. Consider uploading reports for the commit 451e136 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #78      +/-   ##
==========================================
- Coverage   90.42%   82.10%   -8.32%     
==========================================
  Files          30       30              
  Lines        1379     1593     +214     
==========================================
+ Hits         1247     1308      +61     
- Misses        132      285     +153     
Impacted Files Coverage Δ
R/get_coord_from_string.R 90.90% <0.00%> (ø)
R/hydro_shortening_imgw.R 0.00% <ø> (-100.00%) :arrow_down:
R/meteo_metadata_imgw.R 100.00% <ø> (ø)
R/precip_split.R 100.00% <ø> (ø)
R/onAttach.R 14.28% <20.00%> (+1.78%) :arrow_up:
R/hydro_imgw_daily.R 77.52% <35.71%> (-14.58%) :arrow_down:
R/hydro_imgw_monthly.R 74.60% <38.46%> (-19.40%) :arrow_down:
R/hydro_metadata_imgw.R 76.19% <42.85%> (-16.67%) :arrow_down:
R/meteo_imgw_monthly.R 82.29% <42.85%> (-11.05%) :arrow_down:
R/hydro_imgw_annual.R 75.40% <43.75%> (-20.25%) :arrow_down:
... and 24 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Aug 22 '22 13:08 codecov[bot]

@Nowosad - please take a look at:

  • pipeline adjusted to new CRAN policy for HTML5
  • added R devel image which is also required by CRAN
  • boiler plate prefix for all (problematic) functions that are now called with tryCatch - to avoid errors on not properly downloaded files (as request by prof. Ripley).
  • adjusting unit tests for new solution
  • plenty of other minor changes, including lintr, documentations, etc.

I am wondering whether the boiler plate functions that are named with _bp shouldn't be "hidden" a bit more - I am open to discussion / hints. Thx!

bczernecki avatar Aug 23 '22 00:08 bczernecki

── R CMD check results ──────────────────────────────────────────────────────────────────────────── climate 1.0.6 ────
Duration: 2m 50.4s

❯ checking examples with --run-donttest ... ERROR
  Running examples in ‘climate-Ex.R’ failed
  The error most likely occurred in:
  
  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: hydro_imgw_annual
  > ### Title: Semi-annual and annual hydrological data
  > ### Aliases: hydro_imgw_annual
  > 
  > ### ** Examples
  > 
  > ## No test: 
  >   yearly = hydro_imgw_annual(year = 2000, value = "H", station = "ANNOPOL")
  [1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
  
   Downloaded 14542 bytes.../tmp/Rtmpp9gXVW/working_dir/RtmpHySHtq/filea4ee599ae5f0
  [1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
  No internet connection! 
  
  Warning in file(con, "r") :
    cannot open file '/tmp/Rtmpp9gXVW/working_dir/RtmpHySHtq/filea4ee44e2c57e': No such file or directory
  Error in file(con, "r") : cannot open the connection
  Calls: hydro_imgw_annual ... hydro_metadata_imgw -> clean_metadata_hydro -> readLines -> file
  Execution halted

❯ checking tests ...
  See below...

── Test failures ─────────────────────────────────────────────────────────────────────────────────────── testthat ────

> library(testthat)
> library(climate)
> test_check("climate")
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/"
 Downloaded 14722 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/codz_info.txt"
 [100%] Downloaded 516 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/zjaw_info.txt"
 [100%] Downloaded 1753 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_01.zip"
 [100%] Downloaded 168933 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_02.zip"
 [100%] Downloaded 176947 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_03.zip"
 [100%] Downloaded 166170 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_04.zip"
 [100%] Downloaded 159282 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_05.zip"
 [100%] Downloaded 177224 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_06.zip"
 [100%] Downloaded 167346 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_07.zip"
 [100%] Downloaded 182922 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_08.zip"
 [100%] Downloaded 162390 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_09.zip"
 [100%] Downloaded 167833 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_10.zip"
 [100%] Downloaded 164095 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_11.zip"
 [100%] Downloaded 177264 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/codz_2017_12.zip"
 [100%] Downloaded 180153 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/2017/zjaw_2017.zip"
 [100%] Downloaded 75912 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/"
 Downloaded 14526 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/mies_info.txt"
 [100%] Downloaded 839 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/2017/mies_2017.zip"
 [100%] Downloaded 248971 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_Q_2017.zip"
 [100%] Downloaded 58534 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_T_2017.zip"
 [100%] Downloaded 8646 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/2017/polr_H_2017.zip"
 [100%] Downloaded 70716 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/"
 Downloaded 14722 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/codz_info.txt"
 [100%] Downloaded 516 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/zjaw_info.txt"
 [100%] Downloaded 1753 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_01.zip"
 [100%] Downloaded 52312 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_02.zip"
 [100%] Downloaded 59291 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_03.zip"
 [100%] Downloaded 60110 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_04.zip"
 [100%] Downloaded 57523 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_05.zip"
 [100%] Downloaded 63183 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_06.zip"
 [100%] Downloaded 57460 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_07.zip"
 [100%] Downloaded 61546 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_08.zip"
 [100%] Downloaded 58968 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_09.zip"
 [100%] Downloaded 63843 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_10.zip"
 [100%] Downloaded 63310 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_11.zip"
 [100%] Downloaded 59534 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_12.zip"
 [100%] Downloaded 60457 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/zjaw_1960.zip"
 [100%] Downloaded 3195 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/"
 Downloaded 14722 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/codz_info.txt"
 [100%] Downloaded 516 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/zjaw_info.txt"
 [100%] Downloaded 1753 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_01.zip"
 [100%] Downloaded 52312 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_02.zip"
 [100%] Downloaded 59291 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_03.zip"
 [100%] Downloaded 60110 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_04.zip"
 [100%] Downloaded 57523 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_05.zip"
 [100%] Downloaded 63183 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_06.zip"
 [100%] Downloaded 57460 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_07.zip"
 [100%] Downloaded 61546 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_08.zip"
 [100%] Downloaded 58968 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_09.zip"
 [100%] Downloaded 63843 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_10.zip"
 [100%] Downloaded 63310 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_11.zip"
 [100%] Downloaded 59534 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/codz_1960_12.zip"
 [100%] Downloaded 60457 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/1960/zjaw_1960.zip"
 [100%] Downloaded 3195 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/"
 Downloaded 14526 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/mies_info.txt"
 [100%] Downloaded 839 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/1960/mies_1960.zip"
 [100%] Downloaded 93070 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/"
 Downloaded 14526 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/mies_info.txt"
 [100%] Downloaded 839 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/1960/mies_1960.zip"
 [100%] Downloaded 93070 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/1960/polr_H_1960.zip"
 [100%] Downloaded 1238 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/1960/polr_H_1960.zip"
 [100%] Downloaded 1238 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/codz_info.txt"
 [100%] Downloaded 516 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/dobowe/zjaw_info.txt"
 [100%] Downloaded 1753 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/miesieczne/mies_info.txt"
 [100%] Downloaded 839 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/polr_info.txt"
 [100%] Downloaded 821 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/s_t_format.txt"
 [100%] Downloaded 6769 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/"
 [100%] Downloaded 6844 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/"
 Downloaded 13170 bytes...[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_100_s.zip"
 [100%] Downloaded 340409 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_105_s.zip"
 [100%] Downloaded 382493 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_115_s.zip"
 [100%] Downloaded 338603 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_120_s.zip"
 [100%] Downloaded 345100 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_125_s.zip"
 [100%] Downloaded 287659 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_135_s.zip"
 [100%] Downloaded 365584 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_155_s.zip"
 [100%] Downloaded 351510 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_160_s.zip"
 [100%] Downloaded 342363 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/2018/2018_185_s.zip"
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/dobowe/synop/s_d_format.txt"
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/dobowe/opad/o_d_format.txt"
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/dobowe/opad/o_d_format.txt"
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/terminowe/synop/s_t_format.txt"
[1] "https://gml.noaa.gov/webdata/ccgg/trends/co2/co2_mm_mlo.txt"
Service not working or problems with internet connection. Check url:
https://gml.noaa.gov/webdata/ccgg/trends/co2/co2_mm_mlo.txt[1] "https://www1.ncdc.noaa.gov/pub/data/noaa/2019/123300-99999-2019.gz"
  Check station name or year. The URL is not working properly:
  https://www1.ncdc.noaa.gov/pub/data/noaa/2019/123300-99999-2019.gz[1] "https://www1.ncdc.noaa.gov/pub/data/noaa/2100/00000-99999-2100.gz"
  Check station name or year. The URL is not working properly:
  https://www1.ncdc.noaa.gov/pub/data/noaa/2100/00000-99999-2100.gz[1] 12330
  |                                                                      |   0%[1] "https://www.ogimet.com/cgi-bin/gsynres?lang=en&ind=12330&ndays=32&ano=2019&mes=06&day=08&hora=6&ord=REV&Send=Send"
[1] "https://www.ogimet.com/cgi-bin/gsynres?lang=en&ind=12330&ndays=32&ano=2019&mes=06&day=01&hora=6&ord=REV&Send=Send"
[1] 12375
  |                                                                      |   0%[1] "https://www.ogimet.com/cgi-bin/gsynres?lang=en&ind=12375&ndays=32&ano=2019&mes=06&day=08&hora=6&ord=REV&Send=Send"
[1] "https://www.ogimet.com/cgi-bin/gsynres?lang=en&ind=12375&ndays=32&ano=2019&mes=06&day=01&hora=6&ord=REV&Send=Send"
[1] 22222
[1] "https://www.ogimet.com/cgi-bin/gsynres?lang=en&ind=22222&ndays=32&ano=2019&mes=06&day=08&hora=6&ord=REV&Send=Send"
[1] "https://www.ogimet.com/cgi-bin/gsynres?lang=en&ind=22222&ndays=32&ano=2019&mes=06&day=01&hora=6&ord=REV&Send=Send"
[1] 12330
[1] "https://www.ogimet.com/cgi-bin/gsynres?ind=12330&lang=en&decoded=yes&ndays=08&ano=2019&mes=06&day=08&hora=23"
[1] "https://www.ogimet.com/cgi-bin/gsynres?ind=12330&lang=en&decoded=yes&ndays=31&ano=2019&mes=05&day=31&hora=23"
[1] 12001
[1] "http://ogimet.com/cgi-bin/gsynres?ind=12001&lang=en&decoded=yes&ndays=31&ano=2019&mes=02&day=1&hora=00"
[1] "https://www.ogimet.com/cgi-bin/gsynres?ind=12001&lang=en&decoded=yes&ndays=31&ano=2018&mes=12&day=31&hora=23"
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/synop/s_m_d_format.txt"
 [100%] Downloaded 3337 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/synop/s_m_t_format.txt"
 [100%] Downloaded 1325 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/synop/"
 [100%] Downloaded 7061 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_meteorologiczne/miesieczne/synop/2018/2018_m_s.zip"
 [100%] Downloaded 41505 bytes...
[1] "https://danepubliczne.imgw.pl/data/dane_pomiarowo_obserwacyjne/dane_hydrologiczne/polroczne_i_roczne/"
 Downloaded 14542 bytes...[1] "https://www1.ncdc.noaa.gov/pub/data/noaa/country-list.txt"
 [100%] Downloaded 3242 bytes...
[1] "https://www1.ncdc.noaa.gov/pub/data/noaa/country-list.txt"
 Downloaded 3259 bytes...[1] "https://www1.ncdc.noaa.gov/pub/data/noaa/country-list.txt"
 [100%] Downloaded 3242 bytes...
[1] "https://www1.ncdc.noaa.gov/pub/data/noaa/country-list.txt"
 [100%] Downloaded 3242 bytes...
[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=United+Kingdom&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 [100%] Downloaded 20389 bytes...
[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=Poland&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 [100%] Downloaded 12166 bytes...
[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=Pland&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 [100%] Downloaded 3119 bytes...
[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=United+Kingdom&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 [100%] Downloaded 20389 bytes...
[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=Poland&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 [100%] Downloaded 12166 bytes...
[1] "http://weather.uwyo.edu/cgi-bin/sounding?TYPE=TEXT%3ALIST&YEAR=2019&MONTH=04&FROM=0400&TO=0400&STNM=12220"
 [100%] Downloaded 6557 bytes...
[1] "http://weather.uwyo.edu/cgi-bin/bufrraob.py?datetime=2019-04-04+00:00:00&id=12375&type=TEXT:LIST"
 Downloaded 1978 bytes...[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=Australia&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 Downloaded 70051 bytes...[1] "http://ogimet.com/cgi-bin/gsynres?lang=en&state=Australia&osum=no&fmt=html&ord=REV&ano=2022&mes=08&day=24&hora=06&ndays=1&Send=send"
 Downloaded 70051 bytes...[1] "http://httpbin.org/status/404"
[ FAIL 7 | WARN 9 | SKIP 2 | PASS 41 ]

══ Skipped tests ═══════════════════════════════════════════════════════════════
• empty test (2)

══ Warnings ════════════════════════════════════════════════════════════════════
── Warning (test-meteo_imgw.R:5:3): meteo_imgw works! ──────────────────────────
error 1 in extracting from zip file
Backtrace:
 1. climate::meteo_imgw("hourly", "synop", year = y)
      at test-meteo_imgw.R:5:2
 2. climate::meteo_imgw_hourly(...)
 3. utils::unzip(zipfile = temp, exdir = temp2)
── Warning (test-meteo_imgw.R:5:3): meteo_imgw works! ──────────────────────────
'raw = FALSE' but '/tmp/Rtmpp9gXVW/working_dir/RtmpjnjqJl/filea5161e581061/' is not a regular file
Backtrace:
 1. climate::meteo_imgw("hourly", "synop", year = y)
      at test-meteo_imgw.R:5:2
 2. climate::meteo_imgw_hourly(...)
 3. utils::read.csv(...)
 4. utils::read.table(...)
 5. base::file(file, "rt", encoding = fileEncoding)
── Warning (test-meteo_imgw.R:5:3): meteo_imgw works! ──────────────────────────
cannot open file '/tmp/Rtmpp9gXVW/working_dir/RtmpjnjqJl/filea5161e581061/': it is a directory
Backtrace:
 1. climate::meteo_imgw("hourly", "synop", year = y)
      at test-meteo_imgw.R:5:2
 2. climate::meteo_imgw_hourly(...)
 3. utils::read.csv(...)
 4. utils::read.table(...)
 5. base::file(file, "rt", encoding = fileEncoding)
── Warning (test-meteo_imgw_daily.R:5:3): meteo_imgw_daily ─────────────────────
cannot open file '/tmp/Rtmpp9gXVW/working_dir/RtmpjnjqJl/filea5161d77ef2e': No such file or directory
Backtrace:
  1. testthat::expect_error(...)
       at test-meteo_imgw_daily.R:5:2
  6. climate::meteo_imgw_daily(...)
  7. climate:::meteo_metadata_imgw(interval = "daily", rank = rank)
  8. climate:::clean_metadata_meteo(...)
  9. base::readLines(temp, warn = FALSE)
 10. base::file(con, "r")
── Warning (test-meteo_imgw_daily.R:10:3): check_column_with_coordinates ───────
cannot open file '/tmp/Rtmpp9gXVW/working_dir/RtmpjnjqJl/filea516690cf50d': No such file or directory
Backtrace:
 1. climate::meteo_imgw_daily(...)
      at test-meteo_imgw_daily.R:10:2
 2. climate:::meteo_metadata_imgw(interval = "daily", rank = rank)
 3. climate:::clean_metadata_meteo(...)
 4. base::readLines(temp, warn = FALSE)
 5. base::file(con, "r")
── Warning (test-meteo_imgw_daily.R:18:3): check_error_for_non_existing_station ──
cannot open file '/tmp/Rtmpp9gXVW/working_dir/RtmpjnjqJl/filea5161b1fe317': No such file or directory
Backtrace:
  1. testthat::expect_error(...)
       at test-meteo_imgw_daily.R:18:2
  6. climate::meteo_imgw_daily(...)
  7. climate:::meteo_metadata_imgw(interval = "daily", rank = rank)
  8. climate:::clean_metadata_meteo(...)
  9. base::readLines(temp, warn = FALSE)
 10. base::file(con, "r")
── Warning (test-meteo_metadata_imgw.R:3:1): (code run outside of `test_that()`) ──
cannot open file '/tmp/Rtmpp9gXVW/working_dir/RtmpjnjqJl/filea5163f43306e': No such file or directory
Backtrace:
 1. climate:::meteo_metadata_imgw("hourly", "synop")
      at test-meteo_metadata_imgw.R:3:0
 2. climate:::clean_metadata_meteo(...)
 3. base::readLines(temp, warn = FALSE)
 4. base::file(con, "r")
── Warning (test-stations_ogimet.R:2:3): stations_ogimet ───────────────────────
NAs introduced by coercion
Backtrace:
 1. climate::stations_ogimet(country = "Australia", add_map = TRUE)
      at test-stations_ogimet.R:2:2
 6. climate:::stations_ogimet_bp(...)
── Warning (test-stations_ogimet.R:2:3): stations_ogimet ───────────────────────
NAs introduced by coercion
Backtrace:
 1. climate::stations_ogimet(country = "Australia", add_map = TRUE)
      at test-stations_ogimet.R:2:2
 6. climate:::stations_ogimet_bp(...)

══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test-meteo_imgw.R:5:3): meteo_imgw works! ────────────────────────────
Error in `file(file, "rt", encoding = fileEncoding)`: cannot open the connection
Backtrace:
    ▆
 1. └─climate::meteo_imgw("hourly", "synop", year = y) at test-meteo_imgw.R:5:2
 2.   └─climate::meteo_imgw_hourly(...)
 3.     └─utils::read.csv(...)
 4.       └─utils::read.table(...)
 5.         └─base::file(file, "rt", encoding = fileEncoding)
── Error (test-meteo_imgw_daily.R:10:3): check_column_with_coordinates ─────────
Error in `file(con, "r")`: cannot open the connection
Backtrace:
    ▆
 1. └─climate::meteo_imgw_daily(...) at test-meteo_imgw_daily.R:10:2
 2.   └─climate:::meteo_metadata_imgw(interval = "daily", rank = rank)
 3.     └─climate:::clean_metadata_meteo(...)
 4.       └─base::readLines(temp, warn = FALSE)
 5.         └─base::file(con, "r")
── Error (test-meteo_metadata_imgw.R:3:1): (code run outside of `test_that()`) ──
Error in `file(con, "r")`: cannot open the connection
Backtrace:
    ▆
 1. └─climate:::meteo_metadata_imgw("hourly", "synop") at test-meteo_metadata_imgw.R:3:0
 2.   └─climate:::clean_metadata_meteo(...)
 3.     └─base::readLines(temp, warn = FALSE)
 4.       └─base::file(con, "r")
── Failure (test-meteo_ogimet.R:9:5): meteo_ogimet works! ──────────────────────
any(colnames(df) %in% c("Lon", "Lat")) is not TRUE

`actual`:   FALSE
`expected`: TRUE 
── Failure (test-meteo_ogimet.R:13:3): meteo_ogimet works! ─────────────────────
`meteo_ogimet(...)` did not produce any warnings.
── Failure (test-meteo_ogimet.R:23:5): meteo_ogimet works! ─────────────────────
nrow(x) > 100 is not TRUE

`actual`:   FALSE
`expected`: TRUE 
── Error (test-meteo_ogimet.R:31:5): meteo_ogimet works! ───────────────────────
Error in `format.default(x$Date, "%Y")`: invalid 'trim' argument
Backtrace:
    ▆
 1. ├─testthat::expect_equal(unique(format(x$Date, "%Y")), "2019") at test-meteo_ogimet.R:31:4
 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
 3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
 4. ├─base::unique(format(x$Date, "%Y"))
 5. ├─base::format(x$Date, "%Y")
 6. └─base::format.default(x$Date, "%Y")

[ FAIL 7 | WARN 9 | SKIP 2 | PASS 41 ]
Error: Test failures
Execution halted

2 errors ✖ | 0 warnings ✔ | 0 notes ✔

Nowosad avatar Aug 24 '22 08:08 Nowosad

This is what I got after running devtools::check()...

Nowosad avatar Aug 24 '22 08:08 Nowosad

@Nowosad - please have a look again in a spare moment.

Probably there might be still some minor things to fix. Thx!

bczernecki avatar Oct 05 '22 21:10 bczernecki

My testing process was fairly simple:

  1. Disable my internet connection
  2. Run devtools::check(vignettes = FALSE)

The result suggest that several failures still exist:

image

Nowosad avatar Oct 06 '22 14:10 Nowosad

@Nowosad - please check again. Checked with and without internet access.

IMHO it should be ready for sending to CRAN

bczernecki avatar Oct 12 '22 10:10 bczernecki

I run checks with and without the internet connection: everything worked well!

Nowosad avatar Oct 12 '22 11:10 Nowosad