Error in RSS.table[as.character(opt[1]), i] : subscript out of bounds when using C++
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Create a minimal time-series example that exercises the C++ path, then trace breakpoints() into extract.breaks() and compare RSS.table dimensions with the R path. Inspect the indexing at RSS.table[as.character(opt[1]), i]; done means the C++ path completes without the subscript error and produces consistently sized RSS.table data.
Written by the indexing model from the issue text.
Description
I noticed a difference when running the R code and the C++ code path: in the latter, I sometimes get the error:
Error in RSS.table[as.character(opt[1]), i] : subscript out of bounds
This comes from breakpoints(), extract.breaks(), which implies that the RSS.table is not the same size as it would be in the R implementation (as I have never run into that problem in the R code path). I'll try and get an example time series for that.
- Dominant language
- R
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bfast2/strucchangeRcpp
-
Tweak at the end Openquestion
Difficulty 4/5 3-5 days Newbie friendliness 20/100
bfast2/strucchangeRcpp#38 · 1 comment ·
-
enhancement
bfast2/strucchangeRcpp#32 · 2 comments · 1 assignee ·
-
bug help wanted
Difficulty 5/5 Over a week Newbie friendliness 28/100
bfast2/strucchangeRcpp#22 · 2 comments ·
-
help wanted question
Difficulty 5/5 Over a week Newbie friendliness 25/100
bfast2/strucchangeRcpp#20 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
bfast2/strucchangeRcpp#16 ·
All issues in bfast2/strucchangeRcpp
Similar issues
-
documentation pkg infrastructure
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiverse-trace/epiparameter#511 ·
-
function:write_dwc
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Urgent request: Due to vulnerabilities move to API version 12.6.1 (12.6.2 eventually) or 13.1.1 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jbkunst/highcharter#849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100