Skip to content

Commit

Permalink
Merge pull request #24 from clemasso/develop
Browse files Browse the repository at this point in the history
correct display glitch in news plot
  • Loading branch information
clemasso authored Jul 19, 2024
2 parents 4495f33 + 5b4a129 commit c436ed8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

* Add real data for illustration

### Fixed

* Correct display glitch in news graph

## [2.0.3] - 2024-07-12

## [2.0.0] - 2024-06-04
Expand Down
1 change: 1 addition & 0 deletions R/news.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ get_news<-function(dfm_estimates, new_data, target_series = NULL, n_fcst = 3){
target_series_index<-which(colnames(old_data) == target_series) - 1

if (length(target_series_index) == 0){
target_series<-series_names[1]
target_series_index<-0
warning("Target series not found. The first series was considered by default instead.")
}
Expand Down

0 comments on commit c436ed8

Please sign in to comment.