Skip to content

Commit

Permalink
package-after-testing-as-cran
Browse files Browse the repository at this point in the history
  • Loading branch information
kauedesousa committed Jan 5, 2023
1 parent 84bc35a commit 6a6b6f1
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
^vignettes/Overview\.Rmd\.orig$
^inst/paper$
^LICENSE\.md$
^data-raw$
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: climatrends
Type: Package
Title: Climate Variability Indices for Ecological Modelling
Version: 0.4-0003
Version: 0.4-1
Authors@R: c(person("Kauê", "de Sousa",
email = "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-7571-7845")),
Expand All @@ -26,7 +26,6 @@ Suggests:
ag5Tools,
chirps,
knitr,
nasapower,
rmarkdown,
sf,
testthat
Expand Down
5 changes: 5 additions & 0 deletions data-raw/DATASET.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## code to prepare `DATASET` dataset goes here

usethis::use_data(commonbean, overwrite = TRUE, compress = "xz")

dimnames(commonbean[[2]])
Binary file modified data/commonbean.rda
Binary file not shown.
Binary file modified data/innlandet.rda
100755 → 100644
Binary file not shown.
Binary file modified data/lonlatsf.rda
100755 → 100644
Binary file not shown.
Binary file modified data/rain_dat.rda
100755 → 100644
Binary file not shown.
Binary file modified data/temp_dat.rda
100755 → 100644
Binary file not shown.
7 changes: 1 addition & 6 deletions vignettes/Climatology.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author:
affiliation: Department of Agricultural Sciences, Inland Norway University, Hamar, Norway </br> Digital Inclusion, Bioversity International, Montpellier, France
output: html_document
vignette: >
%\VignetteIndexEntry{Overview}
%\VignetteIndexEntry{Climatology}
%\VignetteEncoding{UTF-8}
%\VignetteEngine{knitr::rmarkdown_notangle}
bibliography: ["climatrends.bib"]
Expand Down Expand Up @@ -119,9 +119,4 @@ pl <- gg1 / gg2

The trends show a decrease in the cold spell duration (number of consecutive cold nights bellow the 10th percentile) and warm spell duration (number of consecutive warm days above the 90th percentile). However, the values of the percentiles show an increase over the time series. The T10p index shows a decrease around the year of 2010, but again rises up to the a value around the -10 $^\circ$C, meaning that the cold nights are becoming a bit warmer over the time. The T90p index also shows an increase in the temperature across the sampled area, with the average 90th percentile rising from ~ 16 $^\circ$C to ~ 18 $^\circ$C over the time series.

\begin{figure}
{\centering \includegraphics[width=0.8\linewidth]{nordic.png}}
\caption{Fig. 1. Trends in temperature indices across Southern Norway and Sweden from 2000 to 2019. CSDI, maximum cold spell duration, consecutive nights with temperature < 10th percentile. WSDI, maximum warm spell duration, consecutive days with temperature > 90th percentile. T10p, the 10th percentile of night temperature. T90p, the 90th percentile of day temperature. Red line indicates the historical mean of each index in the time series. Blue line indicates the smoothed trends in each index using the 'loess' method.}\label{fig:fig_nordic}
\end{figure}

# References
2 changes: 1 addition & 1 deletion vignettes/Equations.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author:
affiliation: Department of Agricultural Sciences, Inland Norway University, Hamar, Norway </br> Digital Inclusion, Bioversity International, Montpellier, France
output: html_document
vignette: >
%\VignetteIndexEntry{Overview}
%\VignetteIndexEntry{Equations}
%\VignetteEncoding{UTF-8}
%\VignetteEngine{knitr::rmarkdown_notangle}
bibliography: ["climatrends.bib"]
Expand Down
Binary file removed vignettes/nordic.png
Binary file not shown.

0 comments on commit 6a6b6f1

Please sign in to comment.