Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairify
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UMR G-EAU
fairify
Commits
d4e3bf1e
Commit
d4e3bf1e
authored
1 year ago
by
Dorch
Browse files
Options
Downloads
Patches
Plain Diff
refactor: change use_reports to create_reports
Refs
#3
parent
649695ac
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NAMESPACE
+1
-1
1 addition, 1 deletion
NAMESPACE
R/create_reports.R
+1
-1
1 addition, 1 deletion
R/create_reports.R
man/create_reports.Rd
+4
-4
4 additions, 4 deletions
man/create_reports.Rd
tests/testthat/test-create_reports.R
+6
-0
6 additions, 0 deletions
tests/testthat/test-create_reports.R
with
12 additions
and
6 deletions
NAMESPACE
+
1
−
1
View file @
d4e3bf1e
...
...
@@ -3,6 +3,7 @@
export("%>%")
export(add_gitignore)
export(create_fairify)
export(create_reports)
export(getDataPath)
export(iconv_filename)
export(loadConfig)
...
...
@@ -10,5 +11,4 @@ export(pkg_sys)
export(render_report)
export(render_reports)
export(updateMermaid)
export(use_reports)
importFrom(magrittr,"%>%")
This diff is collapsed.
Click to expand it.
R/
us
e_reports.R
→
R/
creat
e_reports.R
+
1
−
1
View file @
d4e3bf1e
...
...
@@ -7,7 +7,7 @@
#' @export
#'
#' @examples
us
e_reports
<-
function
(
path
=
"."
,
overwrite
=
FALSE
)
{
creat
e_reports
<-
function
(
path
=
"."
,
overwrite
=
FALSE
)
{
# Copy templates
if
(
dir.exists
(
file.path
(
path
,
"templates"
)))
{
if
(
overwrite
)
{
...
...
This diff is collapsed.
Click to expand it.
man/
us
e_reports.Rd
→
man/
creat
e_reports.Rd
+
4
−
4
View file @
d4e3bf1e
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/
us
e_reports.R
\name{
us
e_reports}
\alias{
us
e_reports}
% Please edit documentation in R/
creat
e_reports.R
\name{
creat
e_reports}
\alias{
creat
e_reports}
\title{Set reports folder structure}
\usage{
us
e_reports(path = ".", overwrite = FALSE)
creat
e_reports(path = ".", overwrite = FALSE)
}
\arguments{
\item{path}{Destination folder for reports and templates}
...
...
This diff is collapsed.
Click to expand it.
tests/testthat/test-create_reports.R
0 → 100644
+
6
−
0
View file @
d4e3bf1e
test_that
(
"create_reports works"
,
{
path
<-
tempdir
()
create_reports
(
path
)
expect_error
(
create_reports
(
path
))
expect_warning
(
create_reports
(
path
,
overwrite
=
TRUE
))
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment