Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
r2ogs6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OpenGeoSys Tools
r2ogs6
Commits
4aacda33
Commit
4aacda33
authored
2 years ago
by
Johannes Boog
Browse files
Options
Downloads
Patches
Plain Diff
[base] add path creation and cleaning function
parent
92645ed9
No related branches found
No related tags found
1 merge request
!55
[base] update package to OGS6.4.2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/utils.R
+15
-0
15 additions, 0 deletions
R/utils.R
with
15 additions
and
0 deletions
R/utils.R
+
15
−
0
View file @
4aacda33
...
...
@@ -480,3 +480,18 @@ make_abs_path <- function(file_path, ref_path, force=F){
return
(
file_path
)
}
#' dir_make_overwrite
#' @description Creates a directory or cleans existing one at given path.
#' @param path String
#' @noRd
dir_make_overwrite
<-
function
(
path
)
{
if
(
dir.exists
(
path
))
{
unlink
(
path
,
recursive
=
TRUE
)
}
dir.create
(
path
,
recursive
=
TRUE
)
return
(
invisible
(
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