bfast2 / bfast2/strucchangeRcpp
Error in RSS.table[as.character(opt[1]), i] : subscript out of bounds when using C++
- Lenguaje dominante
- R
- Estrellas
- 6
- Forks
- 5
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Crea un ejemplo mínimo de series temporales que ejercite la ruta de C++, luego sigue breakpoints() hasta extract.breaks() y compara las dimensiones de RSS.table con la ruta de R. Inspecciona la indexación en RSS.table[as.character(opt[1]), i]; se considera terminado cuando la ruta de C++ se completa sin el error de subíndice y produce datos de RSS.table con un tamaño uniforme.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp, r
- Área
- data
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100