Skip to content
Snippets Groups Projects
Commit d36886d7 authored by Ruben Heinrich's avatar Ruben Heinrich
Browse files

[base] minor bugfixes

parent 379e538f
No related branches found
No related tags found
1 merge request!6Merge branch 7 fixed functionality into master
...@@ -255,7 +255,7 @@ add_wrapper <- function(x, to_obj){ ...@@ -255,7 +255,7 @@ add_wrapper <- function(x, to_obj){
assertthat::assert_that(any(grepl("OGS6_", class(to_obj), fixed = TRUE))) assertthat::assert_that(any(grepl("OGS6_", class(to_obj), fixed = TRUE)))
for(i in seq_len(length(x))){ for(i in seq_len(length(x))){
add_component(x, to_obj) to_obj$add_component(x)
} }
} }
...@@ -377,7 +377,7 @@ validate_is_dir_path <- function(path){ ...@@ -377,7 +377,7 @@ validate_is_dir_path <- function(path){
#'clean_up_imported_list #'clean_up_imported_list
#'@description Cleans an imported list because sometimes strings containing #'@description Cleans an imported list because sometimes strings containing
#' only newline characters and spaces get imported in #' only newline characters and spaces get imported in
#'@param list list: A list #'@param imported_list list: A list
clean_up_imported_list <- function(imported_list){ clean_up_imported_list <- function(imported_list){
assertthat::assert_that(is.list(imported_list)) assertthat::assert_that(is.list(imported_list))
...@@ -613,7 +613,7 @@ validate_is_null_or_param_list <- function(obj, default_names){ ...@@ -613,7 +613,7 @@ validate_is_null_or_param_list <- function(obj, default_names){
#'@description Helper function to speed up tests #'@description Helper function to speed up tests
#'@param prj_paths character: .prj paths #'@param prj_paths character: .prj paths
#'@param starting_from_prj_path string: .prj path to start from #'@param starting_from_prj_path string: .prj path to start from
#'@return #'@return character: The sublist starting from `starting_from_prj_path`
get_path_sublist <- function(prj_paths, starting_from_prj_path){ get_path_sublist <- function(prj_paths, starting_from_prj_path){
assertthat::assert_that(is.character(prj_paths)) assertthat::assert_that(is.character(prj_paths))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment