-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from rOpenGov/rogtemplate
rogtemplate project
- Loading branch information
Showing
93 changed files
with
184 additions
and
19,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
^pkgdown$ | ||
^README\.Rmd$ | ||
^\.github$ | ||
^\._pkgdown\.yml$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.html | ||
R-version | ||
*.Rds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
tags: ['*'] | ||
workflow_dispatch: | ||
|
||
name: rogtemplate-gh-pages | ||
|
||
jobs: | ||
rogtemplate-gh-pages: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v1 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
with: | ||
extra-packages: | | ||
magick | ||
ropengov/rogtemplate | ||
needs: website | ||
|
||
- name: Build logo if not present and prepare template | ||
run: | | ||
# Check that logo is not present | ||
if (isFALSE(file.exists(file.path("man", "figures", "logo.png")) || | ||
file.exists(file.path("man", "figures", "logo.png")))) { | ||
rogtemplate::rog_logo() | ||
} else { | ||
message("The package already has a logo") | ||
} | ||
rogtemplate::rog_add_template_pkgdown() | ||
shell: Rscript {0} | ||
|
||
- name: Deploy package | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: test-coverage | ||
|
||
jobs: | ||
test-coverage: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v1 | ||
with: | ||
use-public-rspm: true | ||
install-r: false | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v1 | ||
with: | ||
cache-version: 30 | ||
extra-packages: covr | ||
|
||
- name: Test coverage | ||
run: covr::codecov() | ||
shell: Rscript {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ vignettes/*.pdf | |
rsconnect/ | ||
.Rproj.user | ||
inst/doc | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,23 +3,27 @@ Title: Finnish Meteorological Institute open data API R client | |
Version: 0.2.0 | ||
Date: 2020-11-29 | ||
Authors@R: c( | ||
person("Joona", "Lehtomaki", email = "[email protected]", role = c("aut", "cre")), | ||
person("Leo", "Lahti", role = c("aut"), comment = c(ORCID = "0000-0001-5537-637X")), | ||
person("Ilari", "Scheinin", role = "ctb") | ||
person("Joona", "Lehtomaki", , "[email protected]", role = c("aut", "cre")), | ||
person("Leo", "Lahti", role = "aut", | ||
comment = c(ORCID = "0000-0001-5537-637X")), | ||
person("Ilari", "Scheinin", role = "ctb") | ||
) | ||
Description: R client for the Finnish Meteorological Institute (FMI) open data | ||
API. This package supersedes the obsolete fmi package. Client can be used to | ||
fetch geospatial over FMI's WFS <http://en.ilmatieteenlaitos.fi/open-data-manual-accessing-data> | ||
and converted into geospatial objects in R. | ||
Description: R client for the Finnish Meteorological Institute (FMI) open | ||
data API. This package supersedes the obsolete fmi package. Client can | ||
be used to fetch geospatial over FMI's WFS | ||
<https://en.ilmatieteenlaitos.fi/open-data-manual-accessing-data> and | ||
converted into geospatial objects in R. | ||
License: MIT + file LICENSE | ||
URL: https://ropengov.github.io/fmi2/, https://github.com/rOpenGov/fmi2 | ||
BugReports: https://github.com/rOpenGov/fmi2/issues | ||
Depends: | ||
R (>= 3.3) | ||
Imports: | ||
checkmate (>= 1.9.4), | ||
dplyr (>= 0.7.6), | ||
glue (>= 1.3.1), | ||
httr (>= 1.4.1), | ||
httpcache (>= 1.1.0), | ||
httr (>= 1.4.1), | ||
lubridate (>= 1.7.4), | ||
magrittr (>= 1.5), | ||
methods, | ||
|
@@ -38,16 +42,18 @@ Suggests: | |
leaflet (>= 2.0.2), | ||
prettydoc (>= 0.3.0), | ||
rmarkdown (>= 1.10), | ||
roxygen2 (>= 6.1.1), | ||
skimr (>= 1.0.7), | ||
testthat (>= 2.0.0), | ||
tidyr (>= 0.8.3), | ||
roxygen2 (>= 6.1.1) | ||
VignetteBuilder: knitr | ||
tidyr (>= 0.8.3) | ||
VignetteBuilder: | ||
knitr | ||
ByteCompile: true | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.1.1 | ||
RoxygenNote: 7.1.2 | ||
X-schema.org-isPartOf: http://ropengov.org/ | ||
X-schema.org-keywords: ropengov | ||
Collate: | ||
'fmi2-global.R' | ||
'aaa.R' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.