-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from bczernecki/dev
climate 1.0.5
- Loading branch information
Showing
71 changed files
with
980 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ | |
^vignettes/articles$ | ||
^\.github$ | ||
^\.Rhistory$ | ||
^\.lintr$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ inst/doc | |
.README.md.swp | ||
climate.Rproj | ||
.DS_Store | ||
covr_report.html | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
linters: with_defaults( | ||
line_length_linter = line_length_linter(120), | ||
commented_code_linter = NULL, | ||
absolute_path_linter(), | ||
object_name_linter = NULL, | ||
object_length_linter(length = 50L), | ||
object_usage_linter(source_file = NULL), | ||
cyclocomp_linter(complexity_limit = 33L), | ||
assignment_linter = NULL | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
#' Check locale | ||
#' | ||
#' This is an extra check for some systems that make use of "C.UTF-8" or any iso-like encoding recognized as causing potential problems; | ||
#' The provided list of checked encoding cannot parse properly characters used in the Polish metservice's repository and therefore will be forced to use ASCII//TRANSLIT | ||
#' This is an extra check for some systems that make use of "C.UTF-8" or any | ||
#' iso-like encoding recognized as causing potential problems; | ||
#' The provided list of checked encoding cannot parse properly characters used | ||
#' in the Polish metservice's repository and therefore will be forced to | ||
#' use ASCII//TRANSLIT | ||
#' @noRd | ||
|
||
check_locale = function(){ | ||
check_locale = function() { | ||
|
||
if (Sys.getlocale("LC_CTYPE") %in% c("C.UTF-8", "en_US.iso885915")) { | ||
locale = Sys.getlocale("LC_CTYPE") | ||
message(paste0(" Your system locale is: " , locale," which may cause trouble. | ||
Please consider changing it manually while working with climate, e.g.: | ||
message(paste0(" Your system locale is: ", locale, " which may cause trouble. | ||
Please consider changing it manually while working with climate, e.g.: | ||
Sys.setlocale(category = 'LC_ALL', locale = 'en_US.UTF-8') ")) | ||
Sys.sleep(4) | ||
return(1) | ||
} else { | ||
return(0) | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.