-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
141 changed files
with
1,143 additions
and
1,256 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
S3method(print,pecan_version_report) | ||
export(pecan_version) |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Set at package install time, used by pecan.all::pecan_version() | ||
# to identify development versions of packages | ||
.build_hash <- Sys.getenv("PECAN_GIT_REV", "unknown") |
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,30 +1,34 @@ | ||
|
||
# Read and format a list of pecan versions | ||
|
||
pecan_version_history <- utils::read.csv( | ||
"pecan_version_history.csv", | ||
colClasses = "character", | ||
check.names = FALSE) | ||
# The local() wrapper is to avoid adding objects to the package data: | ||
# Any extra vars defined at the top level of this file would be loaded | ||
# into the global environment by `data("pecan_version_history")` | ||
|
||
# We'd like to parse strictly to catch invalid versions (probably typos). | ||
# But we _need_ to allow NAs... and in R < 4.4, package_version did not | ||
# accept NAs unless strict=FALSE. | ||
strict <- TRUE | ||
na_version <- try( | ||
package_version(NA_character_, strict = strict), | ||
silent = TRUE) | ||
if (inherits(na_version, "try-error")) { | ||
strict <- FALSE | ||
} | ||
pecan_version_history <- local({ | ||
pvh <- utils::read.csv( | ||
"pecan_version_history.csv", | ||
colClasses = "character", | ||
check.names = FALSE) | ||
|
||
for (col in colnames(pecan_version_history)) { | ||
if (col != "package") { | ||
pecan_version_history[[col]] <- package_version( | ||
pecan_version_history[[col]], | ||
strict = strict) | ||
# We'd like to parse strictly to catch invalid versions (probably typos). | ||
# But we _need_ to allow NAs... and in R < 4.4, package_version did not | ||
# accept NAs unless strict=FALSE. | ||
strict <- TRUE | ||
na_version <- try( | ||
package_version(NA_character_, strict = strict), | ||
silent = TRUE) | ||
if (inherits(na_version, "try-error")) { | ||
strict <- FALSE | ||
} | ||
} | ||
|
||
# Now remove local vars | ||
# Yes, this really is needed: _all_ objects left defined at end of script | ||
# will be added to the package data list! | ||
rm(strict, na_version, col) | ||
for (col in colnames(pvh)) { | ||
if (col != "package") { | ||
pvh[[col]] <- package_version( | ||
pvh[[col]], | ||
strict = strict) | ||
} | ||
} | ||
|
||
pvh | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Set at package install time, used by pecan.all::pecan_version() | ||
# to identify development versions of packages | ||
.build_hash <- Sys.getenv("PECAN_GIT_REV", "unknown") |
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,3 @@ | ||
# Set at package install time, used by pecan.all::pecan_version() | ||
# to identify development versions of packages | ||
.build_hash <- Sys.getenv("PECAN_GIT_REV", "unknown") |
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,3 @@ | ||
# Set at package install time, used by pecan.all::pecan_version() | ||
# to identify development versions of packages | ||
.build_hash <- Sys.getenv("PECAN_GIT_REV", "unknown") |
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,3 @@ | ||
# Set at package install time, used by pecan.all::pecan_version() | ||
# to identify development versions of packages | ||
.build_hash <- Sys.getenv("PECAN_GIT_REV", "unknown") |
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,3 @@ | ||
# Set at package install time, used by pecan.all::pecan_version() | ||
# to identify development versions of packages | ||
.build_hash <- Sys.getenv("PECAN_GIT_REV", "unknown") |
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,29 +1,3 @@ | ||
University of Illinois/NCSA Open Source License | ||
|
||
Copyright (c) 2012, University of Illinois, NCSA. All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal with the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
- Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimers. | ||
- Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimers in the | ||
documentation and/or other materials provided with the distribution. | ||
- Neither the names of University of Illinois, NCSA, nor the names | ||
of its contributors may be used to endorse or promote products | ||
derived from this Software without specific prior written permission. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR | ||
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | ||
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. | ||
|
||
YEAR: 2024 | ||
COPYRIGHT HOLDER: PEcAn Project | ||
ORGANIZATION: PEcAn Project, authors affiliations |
Oops, something went wrong.