Skip to content

Commit

Permalink
rqog should pass R CMD check now
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Oct 13, 2021
1 parent b9b40c3 commit 32f93ed
Show file tree
Hide file tree
Showing 7 changed files with 426 additions and 161 deletions.
8 changes: 8 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
^.*\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^\.github$
^docs$
^_pkgdown\.yaml$
^doc$
^Meta$
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ README.Rmd
README.html
rQog.Rproj
rqog.Rproj
.Rbuildignore
Read-and-delete-me
cache
testausta.R
rqog_tutorial.md
/doc/
/Meta/
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ Imports:
haven,
readxl,
glue,
knitr,
dplyr,
ggplot2,
tidyr,
devtools
Depends:
R (>= 3.5.0)
Suggests:
dplyr,
knitr,
rmarkdown
Description: R client for the Quality of Government (QOG) open data. Client can be used to fetch data files <https://qog.pol.gu.se/data> and converted into data.frame objects in R.
License: MIT + file LICENSE
License: MIT + file LICENCE
RoxygenNote: 7.1.1
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2021 rqog authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![CRAN
status](https://www.r-pkg.org/badges/version/rqog)](https://CRAN.R-project.org/package=rqog)
[![R-CMD-check](https://github.com/rOpenGov/rqog/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rOpenGov/rqog/actions/workflows/R-CMD-check.yaml)
[![r-universe](https://ropengov.r-universe.dev/badges/rqog)](https://ropengov.r-universe.dev/)
<!-- badges: end -->

Download the latest and archived datasets from the [Quality of
Expand All @@ -18,7 +20,7 @@ Government Institute](https://qog.pol.gu.se/data) using the function
for help, [package
vignette](http://ropengov.github.io/rqog/articles/rqog_tutorial.html)
for more examples and
[data.markuskainu.fi/qog/](http://data.markuskainu.fi/qog/index.html)
[data.markuskainu.fi/qog/](https://data.markuskainu.fi/qog/index.html)
for interactive metadata.

## Installation
Expand All @@ -27,6 +29,19 @@ for interactive metadata.
devtools::install_github("ropengov/rqog")
```

Alternatively, you can use the
[r-universe](https://ropengov.r-universe.dev):

``` r
# Enable this universe
options(repos = c(
ropengov = "https://ropengov.r-universe.dev",
CRAN = "https://cloud.r-project.org"
))

install.packages("rqog")
```

## Use

**Download data**
Expand Down
11 changes: 8 additions & 3 deletions vignettes/rqog_tutorial.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
title: "rqog-package for R"
output: html_document
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{rqog-package for R}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
editor_options:
chunk_output_type: console
---
Expand All @@ -13,7 +17,8 @@ editor_options:


```{r include = FALSE}
knitr::opts_chunk$set(echo = TRUE,message = FALSE, warning = FALSE, cache = FALSE)
knitr::opts_chunk$set(echo = TRUE,message = FALSE, warning = FALSE, cache = FALSE,
out.width = "100%")
```


Expand Down Expand Up @@ -270,5 +275,5 @@ ggplot(plot_d, aes(x=ht_regtype_lab,y=n)) +


```{r}
devtools::session_info()
sessionInfo()
```
519 changes: 366 additions & 153 deletions vignettes/rqog_tutorial.html

Large diffs are not rendered by default.

0 comments on commit 32f93ed

Please sign in to comment.