-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Added "PlotFTIR.lang" option per #10
- Loading branch information
Showing
10 changed files
with
128 additions
and
42 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 |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
^cran-comments\.md$ | ||
^CRAN-SUBMISSION$ | ||
^LICENSE$ | ||
^paper$ |
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,5 +1,7 @@ | ||
# PlotFTIR (development version) | ||
|
||
* Added ability to set default language in options() (#10) | ||
|
||
# PlotFTIR 1.0.0 | ||
|
||
* Initial Release & CRAN Submission. |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# nocov start | ||
|
||
.onAttach <- function(libname, pkgname) { | ||
# default to memory cache if not set | ||
lang_option <- getOption("PlotFTIR.lang") | ||
|
||
if (is.null(lang_option)) { | ||
lang_option <- "en" | ||
options("PlotFTIR.lang" = "en") | ||
packageStartupMessage( | ||
'Plotting spectra with PlotFTIR. Please cite if plots are used in publishing (`citation("plotFTIR")`).\n', | ||
'PlotFTIR set to English as default. Changer au fran\u00e7ais par la fonction options("PlotFTIR.lang" = "en")' | ||
) | ||
} else { | ||
if (tolower(lang_option) %in% c("fr", "fra", "french", "francais", "fran\u00e7ais")) { | ||
packageStartupMessage( | ||
'Trac\u00e9 des spectres avec PlotFTIR. Veuillez citer si les tracu00e9s sont utilisu00e9s dans un publication (`citation("plotFTIR")`).' | ||
) | ||
} else { | ||
packageStartupMessage( | ||
'Plotting spectra with PlotFTIR. Please cite if plots are used in publishing (`citation("plotFTIR")`).' | ||
) | ||
} | ||
} | ||
} | ||
# nocov end |
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,20 +1,6 @@ | ||
## R CMD check results | ||
|
||
0 errors | 0 warnings | 1 note | ||
0 errors | 0 warnings | 0 notes | ||
|
||
* This is a new release. | ||
|
||
* Previously resubmitted with corrections made as requested by Uwe Ligges: | ||
* package names in description surrounded by a single quote, | ||
* with CODE_OF_CONDUCT.md references removed from readme, | ||
* file LICENSE removed and 'cph' specified in Authors@R | ||
|
||
* Previously resubmitted with corrections made as requested by Konstanze Lauseker: | ||
* Examples with \dontrun are unwrapped and (if required) wrapped by requireNamespace() checks. | ||
* At this point no external references to these methods exist, so no change to DESCRIPTION has been made. | ||
|
||
* This is a resubmission with changes made as requested by Beni Altmann: | ||
* Changes to working directory were unavoidable by the interface to ChemoSpec (that package doesn't allow | ||
for specifying directory when importing files). As such, in-code changes to working directory are protected | ||
with a call to `on.exit()`. | ||
* This resubmit also adds a function for normalization of spectra per user request (in maths.R), with associated docs. | ||
* This is a minor update with improvements | ||
* Added ability to set default language in options(). |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.