Skip to content

Commit

Permalink
Plecharpent/release/cran (#21)
Browse files Browse the repository at this point in the history
* news update, date , license file

* fix: license

* useless

* update with latests tests results

* fixes: linting, date of release
  • Loading branch information
plecharpent committed Jun 29, 2023
1 parent 5d51289 commit 7d23739
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 376 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: SticsRFiles
Title: Read and Modify 'STICS' Input/Output Files
Version: 1.1.3
Date: 2023-06-27
Date: 2023-06-29
Authors@R: c(
person("Patrice", "Lecharpentier", , "patrice.lecharpentier@inrae.fr", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4044-4322")),
Expand Down
165 changes: 0 additions & 165 deletions LICENSE

This file was deleted.

163 changes: 0 additions & 163 deletions LICENSE.md

This file was deleted.

2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SticsRFiles 1.1.3 _2023-06-27_
# SticsRFiles 1.1.3 _2023-06-29_

* FUNCTIONS
* New function for generating the new_travail.usm STICS file
Expand Down
5 changes: 2 additions & 3 deletions R/gen_climate.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@
gen_climate <- function(files_path, out_dir) {

# generate intermediate paths for a multi-years simulation
# i.e. > 2
# i.e. over 2
files_path <- complete_climate_paths(files_path)

# data concatenation
climate_lines <- c()
for (i in seq_along(files_path)) {
#out_files_lines[[i]] <- trimws(readLines(files_path[i]))
climate_lines <- c(climate_lines, trimws(readLines(files_path[i])))
}

Expand Down Expand Up @@ -83,7 +82,7 @@ complete_climate_paths <- function(files_path) {
years_chr <- as.character(years)
file_name <- strsplit(basename(files_path[1]), split = "\\.")[[1]][1]
files_path <- file.path(
dirname(files_path[1]), paste0(file_name,".", years_chr)
dirname(files_path[1]), paste0(file_name, ".", years_chr)
)


Expand Down
Loading

0 comments on commit 7d23739

Please sign in to comment.