Skip to content

Commit

Permalink
Merge pull request #19 from fbenke-pik/master
Browse files Browse the repository at this point in the history
handle potential permission problems when copying files from the library
  • Loading branch information
fbenke-pik authored Dec 19, 2024
2 parents 8de3627 + 1e45add commit 84252e2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .buildlibrary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ValidationKey: '200730'
ValidationKey: '220836'
AutocreateReadme: yes
AcceptedWarnings:
- 'Warning: package ''.*'' was built under R version'
Expand All @@ -7,3 +7,4 @@ AcceptedNotes: All declared Imports should be used.
allowLinterWarnings: yes
enforceVersionUpdate: no
skipCoverage: no
AutocreateCITATION: yes
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cff-version: 1.2.0
message: If you use this software, please cite it using the metadata from this file.
type: software
title: 'piamPlotComparison: Create comparison plots for your model results'
version: 0.1.0
date-released: '2024-12-16'
version: 0.1.1
date-released: '2024-12-19'
abstract: A frameworks to create comparison plots for your model results.
authors:
- family-names: Benke
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: piamPlotComparison
Title: Create comparison plots for your model results
Version: 0.1.0
Date: 2024-12-16
Version: 0.1.1
Date: 2024-12-19
Authors@R: c(
person("Falk", "Benke", , "[email protected]", role = c("aut", "cre")),
person("Christof", "Schoetz", role = "aut")
Expand Down
6 changes: 6 additions & 0 deletions R/compareScenarios.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ compareScenarios <- function(
outputDir, recursive = TRUE)
}

# avoid potential problems with write permissions on the copied files
Sys.chmod(list.files(outputDir, full.names = TRUE))

rmarkdown::render(
templateInOutputDir,
intermediates_dir = outputDir,
Expand Down Expand Up @@ -222,6 +225,9 @@ compareScenarios <- function(

file.copy(rmdDirFiles, pathDir)

# avoid potential problems with write permissions on the copied files
Sys.chmod(list.files(pathDir, full.names = TRUE))

ymlthis::use_rmarkdown(
newYaml,
path = file.path(pathDir, "cs_main.Rmd"),
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create comparison plots for your model results

R package **piamPlotComparison**, version **0.1.0**
R package **piamPlotComparison**, version **0.1.1**

[![CRAN status](https://www.r-pkg.org/badges/version/piamPlotComparison)](https://cran.r-project.org/package=piamPlotComparison) [![R build status](https://github.com/pik-piam/piamPlotComparison/workflows/check/badge.svg)](https://github.com/pik-piam/piamPlotComparison/actions) [![codecov](https://codecov.io/gh/pik-piam/piamPlotComparison/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/piamPlotComparison) [![r-universe](https://pik-piam.r-universe.dev/badges/piamPlotComparison)](https://pik-piam.r-universe.dev/builds)

Expand Down Expand Up @@ -46,16 +46,17 @@ In case of questions / problems please contact Falk Benke <[email protected]>

To cite package **piamPlotComparison** in publications use:

Benke F, Schoetz C (2024). _piamPlotComparison: Create comparison plots for your model results_. R package version 0.1.0, <https://github.com/pik-piam/piamPlotComparison>.
Benke F, Schoetz C (2024). "piamPlotComparison: Create comparison plots for your model results." Version: 0.1.1, <https://github.com/pik-piam/piamPlotComparison>.

A BibTeX entry for LaTeX users is

```latex
@Manual{,
@Misc{,
title = {piamPlotComparison: Create comparison plots for your model results},
author = {Falk Benke and Christof Schoetz},
date = {2024-12-19},
year = {2024},
note = {R package version 0.1.0},
url = {https://github.com/pik-piam/piamPlotComparison},
note = {Version: 0.1.1},
}
```
1 change: 1 addition & 0 deletions piamplotcomparison.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: 65a496ed-e9da-4226-99b7-1a02287a4f93

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down

0 comments on commit 84252e2

Please sign in to comment.