Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkamaleri committed Sep 8, 2023
2 parents 5628559 + 806b381 commit 4c3840a
Show file tree
Hide file tree
Showing 99 changed files with 144 additions and 130 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: orgdata
Title: Aggregating Original Data
Version: 1.4.4
Version: 1.4.5
Authors@R:
c(person(given = "Yusman",
family = "Kamaleri",
Expand Down Expand Up @@ -34,13 +34,13 @@ Imports:
rex (>= 1.2.0),
listenv (>= 0.8.0),
withr (>= 2.5.0),
remotes (>= 2.4.2),
haven (>= 2.5.1),
yaml (>= 2.3.5),
methods,
praise (>= 1.0.0),
duckdb (>= 0.7.0),
cli (>= 3.4.0)
cli (>= 3.4.0),
pak (>= 0.6.0)
Remotes:
ybkamaleri/praise,
hadley/emo,
Expand Down
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# orgdata 1.4.3
- Have access to future data from API (#316)
# orgdata 1.4.5
- Have access to future data from API (#316).
- Use `pak` package for upgrade.

# orgdata 1.4.2
- Display output when called.
Expand Down
16 changes: 11 additions & 5 deletions R/utils-misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,23 @@ emoji <- function(x = c("mark", "thumb", "write",

#' @title Update package
#' @description Update orgdata directly with Github repo. Default is `main` branch.
#' @param ... Other arguments to `remotes::install_github()`
#' @param branch The branch in Github to install from
#' @param force Use the laterst version(s) of all dependencies. Default is FALSE
#' @examples
#' \dontrun{
#' update_orgdata() #use default
#' update_orgdata(ref = "dev") #to upgrade with dev branch
#' update_orgdata(branch = "main") #default
#' update_orgdata(branch = "dev") #to upgrade with dev branch
#' }
#' @export
update_orgdata <- function(...){
update_orgdata <- function(branch = c("main", "dev"), force = FALSE){
branch <- match.arg(branch)
unloadNamespace("orgdata")
suppressWarnings(remotes::install_github("helseprofil/orgdata", force = TRUE, ...))
switch(branch,
main = pak::pkg_install("helseprofil/orgdata", upgrade = force),
dev = pak::pkg_install("helseprofil/orgdata@dev", upgrade = force)
)
attachNamespace("orgdata")
invisible()
}

#' @export
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ via `orgdata`.
orgdata::update_orgdata()

# install development versjon
orgdata::update_orgdata(ref = "dev")
orgdata::update_orgdata(branch = "dev")
```

## Usage
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ version via `orgdata`.
orgdata::update_orgdata()

# install development versjon
orgdata::update_orgdata(ref = "dev")
orgdata::update_orgdata(branch = "dev")
```

## Usage
Expand Down Expand Up @@ -74,12 +74,12 @@ make_filegroups(BEFOLKNING, LESEFERD, NEET)

## Resources

- [Config
file](https://github.com/helseprofil/config/blob/main/config-orgdata.yml)
- [Get
started](https://helseprofil.github.io/orgdata/articles/get-started.html)
- [Functions
overview](https://helseprofil.github.io/orgdata/reference/index.html)
- [General guide](https://helseprofil.github.io)
- [Conventions](https://helseprofil.github.io/orgdata/articles/standard.html)
- [Video guide](https://youtu.be/PhEQq4iWJCY)
- [Config
file](https://github.com/helseprofil/config/blob/main/config-orgdata.yml)
- [Get
started](https://helseprofil.github.io/orgdata/articles/get-started.html)
- [Functions
overview](https://helseprofil.github.io/orgdata/reference/index.html)
- [General guide](https://helseprofil.github.io)
- [Conventions](https://helseprofil.github.io/orgdata/articles/standard.html)
- [Video guide](https://youtu.be/PhEQq4iWJCY)
2 changes: 1 addition & 1 deletion docs/404.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE.html

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

2 changes: 1 addition & 1 deletion docs/articles/debugging.html

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

2 changes: 1 addition & 1 deletion docs/articles/geo-recode.html

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

2 changes: 1 addition & 1 deletion docs/articles/get-started.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

2 changes: 1 addition & 1 deletion docs/articles/sepaafil.html

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

2 changes: 1 addition & 1 deletion docs/articles/standard.html

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

6 changes: 3 additions & 3 deletions docs/authors.html

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

4 changes: 2 additions & 2 deletions docs/index.html

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

7 changes: 4 additions & 3 deletions docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ articles:
get-started: get-started.html
sepaafil: sepaafil.html
standard: standard.html
last_built: 2023-09-07T14:13Z
last_built: 2023-09-08T08:33Z
urls:
reference: https://helseprofil.github.io/orgdata/reference
article: https://helseprofil.github.io/orgdata/articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/KHelse.html

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

2 changes: 1 addition & 1 deletion docs/reference/debug_opt.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_aggregate.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_colname.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_column_standard.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_delete_row.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_extra_args.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_extra_args_group.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_geo_recode.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_implicit_null.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_make_file_each.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_manheader.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_mutate.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_recode.html

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

2 changes: 1 addition & 1 deletion docs/reference/do_recode_aggregate.html

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

Loading

0 comments on commit 4c3840a

Please sign in to comment.