Skip to content

Commit

Permalink
Fixed more dtthreads
Browse files Browse the repository at this point in the history
  • Loading branch information
eliocamp committed Oct 30, 2023
1 parent 35aa49a commit 9d18b58
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Description: Many useful functions and extensions for dealing
for better plotting of scalar and vector fields and provides commonly
used analysis methods in the atmospheric sciences.
License: GPL-3
URL: https://github.com/eliocamp/metR, https://eliocamp.github.io/metR/
URL: https://eliocamp.github.io/metR/
BugReports: https://github.com/eliocamp/metR/issues
Depends:
R (>= 2.10)
Expand Down
3 changes: 2 additions & 1 deletion R/ConvertLongitude.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
#' Else, a list with vectors `lon` and `group`.
#'
#' @examples
#' data.table::setDTthreads(1)
#' library(ggplot2)
#' library(data.table)
#' \dontshow{data.table::setDTthreads(1)}
#' data(geopotential)
#'
#' ggplot(geopotential[date == date[1]], aes(lon, lat, z = gh)) +
#' geom_contour(color = "black") +
#' geom_contour(aes(x = ConvertLongitude(lon)))
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ install.packages("metR")
Or the development version with:

```{r gh-installation, eval = FALSE}
install.packages("metR", repos = c("https://eliocamp.github.io/metR/repo", getOption("repos")))
install.packages("metR", repos = c("https://eliocamp.github.io/metR", getOption("repos")))
```

If you need to read netcdf files, you might need to install the netcdf and udunits2 libraries. On Ubuntu and it's derivatives this can be done by typing
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ install.packages("metR")
Or the development version with:

``` r
install.packages("metR", repos = c("https://eliocamp.github.io/metR/repo", getOption("repos")))
install.packages("metR", repos = c("https://eliocamp.github.io/metR", getOption("repos")))
```

If you need to read netcdf files, you might need to install the netcdf
Expand All @@ -69,7 +69,7 @@ citation("metR")
#> author = {Elio Campitelli},
#> year = {2021},
#> note = {R package version 0.14.1},
#> url = {https://github.com/eliocamp/metR, https://eliocamp.github.io/metR/},
#> url = {https://eliocamp.github.io/metR/},
#> doi = {10.5281/zenodo.2593516},
#> }
```
Expand Down
2 changes: 1 addition & 1 deletion add_repo.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
temp <- tempdir()
pkgbuild::build(dest_path = temp)

repo <- "docs/repo"
repo <- "docs"
unlink(repo, recursive = TRUE)
dir.create(repo)

Expand Down
3 changes: 2 additions & 1 deletion man/ConvertLongitude.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/metR.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vignettes/Visualization-tools.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ collapse = TRUE,
message = FALSE,
fig.width = 7,
comment = "#>")
data.table::setDTthreads(1)
```

One of the "conceptual branches" of `metR` is the *visualization tools*. These are a set of functions that interface with [ggplot2](https://ggplot2.tidyverse.org/index.html) for easier and better plotting of meteorological (an other) fields.
Expand Down
1 change: 1 addition & 0 deletions vignettes/Working-with-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dev = "jpeg",
fig.width = 7,
cache = FALSE
)
data.table::setDTthreads(1)
```


Expand Down

0 comments on commit 9d18b58

Please sign in to comment.