Skip to content

Commit

Permalink
minot bugs fixed regarding set_modern_Data()
Browse files Browse the repository at this point in the history
  • Loading branch information
mchevalier2 committed Jun 17, 2024
1 parent 644c23d commit ddff36f
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Logging of taxa assignment is fixed.
* Including minGridCell in the algorithm.
* Adding a global warning if mingridcell is <15, and an error is <2.
* The plots that require variable names function properly.

# crestr 1.3.0

Expand Down
2 changes: 1 addition & 1 deletion R/crestObj.plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ plot.crestObj <- function(x,
ylim2 <- ylim[c(idx * 2 - 1, idx * 2)]
}

climate_names <- accClimateVariables()
climate_names <- accClimateVariables(v=clim)

if(is.character(x$inputs$x) | is.factor(x$inputs$x)) {
if(simplify) warning("The plotting function is not adapted to non-numeric x values. The sample names were replaced by numeric indexes.")
Expand Down
4 changes: 3 additions & 1 deletion R/dbFixedNames.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ accClimateVariables <- function(v=NA, domain=NA) {
if(!is.na(v[1])) {
if(v[1] %in% res[,2]) {
w=which(res[,2] == v[1])
return(c(res[w,1], res[w,2], res[w,3], res[w,4]))
return(matrix(c(res[w,1], res[w,2], res[w,3], res[w,4]), ncol=4))
} else {
return(matrix(c(0, v, v, ''), ncol=4))
}
}
w <- 1:nrow(res)
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/calibration-data.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/community.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/databasing-with-crestr.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/get-started.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/limpopo.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/technicalities.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/theory.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/warnings.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ articles:
technicalities: technicalities.html
theory: theory.html
warnings: warnings.html
last_built: 2024-06-14T07:57Z
last_built: 2024-06-17T15:45Z

0 comments on commit ddff36f

Please sign in to comment.