Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
migale
affiliationExplorer
Commits
9c4b612d
Commit
9c4b612d
authored
Oct 30, 2020
by
mahendra-mariadassou
Browse files
Update config files
parent
9939a3ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
R/app_config.R
0 → 100644
View file @
9c4b612d
#' Access files in the current app
#'
#' @param ... Character vector specifying directory and or file to
#' point to inside the current package.
#'
#' @noRd
app_sys
<-
function
(
...
){
system.file
(
...
,
package
=
"affiliationExplorer"
)
}
#' Read App Config
#'
#' @param value Value to retrieve from the config file.
#' @param config R_CONFIG_ACTIVE value.
#' @param use_parent Logical, scan the parent directory for config file.
#'
#' @importFrom config get
#'
#' @noRd
get_golem_config
<-
function
(
value
,
config
=
Sys.getenv
(
"R_CONFIG_ACTIVE"
,
"default"
),
use_parent
=
TRUE
){
config
::
get
(
value
=
value
,
config
=
config
,
# Modify this if your config file is somewhere else:
file
=
app_sys
(
"golem-config.yml"
),
use_parent
=
use_parent
)
}
dev/02_dev.R
View file @
9c4b612d
...
...
@@ -26,6 +26,9 @@ usethis::use_package("Biostrings")
## Github dependencies
usethis
::
use_dev_package
(
"phyloseq.extended"
)
## Check dependencies
attachment
::
att_to_description
()
## 2.3 Add tests
usethis
::
use_test
(
"app"
)
...
...
inst/golem-config.yml
0 → 100644
View file @
9c4b612d
default
:
golem_name
:
affiliationExplorer
golem_version
:
0.0.0.9000
app_prod
:
no
production
:
app_prod
:
yes
dev
:
golem_wd
:
!expr
here::here()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment