Skip to content

Commit 562c034

Browse files
v1.0.0 Githubiin
0 parents  commit 562c034

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+23720
-0
lines changed

.Rbuildignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
^renv$
2+
^renv\.lock$
3+
^.*\.Rproj$
4+
^\.Rproj\.user$
5+
^data-raw$
6+
dev_history.R
7+
^dev$
8+
$run_dev.*
9+
^LICENSE\.md$
10+
^README\.Rmd$
11+
^app\.R$
12+
^rsconnect$
13+
^Dockerfile$
14+
^\.dockerignore$

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.RData
2+
.Rhistory
3+
.git
4+
.gitignore
5+
manifest.json
6+
rsconnect/
7+
Rproj.user

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.Rproj.user
2+
.Rhistory
3+
.Rdata
4+
.httr-oauth
5+
.DS_Store
6+
perhevapaavertailu.Rproj
7+
Dockerfile_openshift
8+
Dockerfile_shinyproxy
9+
aymp-build.conf
10+
LICENSE

DESCRIPTION

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Package: perhevapaavertailu
2+
Title: A shiny application for calculating how sharing family leave between parents can affect your family income
3+
Version: 1.0.0
4+
Date: 2024-06-28
5+
Authors@R: c(
6+
person("Eeva-Maria", "Keski-Säntti", , "[email protected]", role = c("cre", "aut")),
7+
person("Petri", "Eskelinen", , "[email protected]", role = "aut"),
8+
person("Tapio", "Isolankila", , "[email protected]", role = "aut"),
9+
person("Markus", "Kainu", , "[email protected]", role = "aut",
10+
comment = c(ORCID = "0000-0003-1376-503X"))
11+
)
12+
Description: You can use this calculator to give you an idea of how sharing family leave between parents can affect your family income.
13+
This calculator is intended for working parents whose child was born on or after 4 September 2022. Please note that the results are only indicative.
14+
License: MIT + file LICENSE
15+
Imports:
16+
bslib,
17+
bsicons,
18+
config (>= 0.3.1),
19+
dplyr,
20+
ggplot2,
21+
glue,
22+
golem (>= 0.3.1),
23+
shiny.i18n,
24+
metathis,
25+
patchwork,
26+
plyr,
27+
readr,
28+
shiny (>= 1.7.1),
29+
shinycssloaders,
30+
shinyFeedback,
31+
shinyjs,
32+
yaml
33+
Suggests:
34+
knitr,
35+
rmarkdown,
36+
spelling,
37+
testthat (>= 3.0.0)
38+
Config/testthat/edition: 3
39+
Encoding: UTF-8
40+
Language: en-US
41+
LazyData: true
42+
RoxygenNote: 7.3.1

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2021-2024 Eeva-Maria Keski-Säntti, Tapio Isolankila, Markus Kainu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NAMESPACE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated by roxygen2: do not edit by hand
2+
3+
export(run_app)
4+
import(bslib)
5+
import(dplyr)
6+
import(ggplot2)
7+
import(metathis)
8+
import(patchwork)
9+
import(shiny)
10+
import(shiny.i18n)
11+
import(shinyFeedback)
12+
importFrom(golem,activate_js)
13+
importFrom(golem,add_resource_path)
14+
importFrom(golem,bundle_resources)
15+
importFrom(golem,favicon)
16+
importFrom(golem,with_golem_options)
17+
importFrom(shiny,shinyApp)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# perhevapaavertailu 1.0.0
2+
3+
* Public release of source code under MIT-license

R/app_config.R

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#' Access files in the current app
2+
#'
3+
#' NOTE: If you manually change your package name in the DESCRIPTION,
4+
#' don't forget to change it here too, and in the config file.
5+
#' For a safer name change mechanism, use the `golem::set_golem_name()` function.
6+
#'
7+
#' @param ... character vectors, specifying subdirectory and file(s)
8+
#' within your package. The default, none, returns the root of the app.
9+
#'
10+
#' @noRd
11+
app_sys <- function(...){
12+
system.file(..., package = "perhevapaavertailu")
13+
}
14+
15+
16+
#' Read App Config
17+
#'
18+
#' @param value Value to retrieve from the config file.
19+
#' @param config GOLEM_CONFIG_ACTIVE value. If unset, R_CONFIG_ACTIVE.
20+
#' If unset, "default".
21+
#' @param use_parent Logical, scan the parent directory for config file.
22+
#'
23+
#' @noRd
24+
get_golem_config <- function(
25+
value,
26+
config = Sys.getenv(
27+
"GOLEM_CONFIG_ACTIVE",
28+
Sys.getenv(
29+
"R_CONFIG_ACTIVE",
30+
"default"
31+
)
32+
),
33+
use_parent = TRUE
34+
){
35+
config::get(
36+
value = value,
37+
config = config,
38+
# Modify this if your config file is somewhere else:
39+
file = app_sys("golem-config.yml"),
40+
use_parent = use_parent
41+
)
42+
}
43+

0 commit comments

Comments
 (0)