You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data("ExampleData.SurfaceExposure", envir= environment())
fit_SurfaceExposure(rbind(ExampleData.SurfaceExposure$sample_1, NA))
# Warning messages:# 1: NA values in 'data' were removed. # 2: In plot_settings$x[, 2] - error :# longer object length is not a multiple of shorter object length# 3: In plot_settings$x[, 2] + error :# longer object length is not a multiple of shorter object length
Warning 1 is fine as we raise it when we remove the NAs. However the other two are signalling a bug. Indeed, the following is incorrect:
warning("NA values in 'data' were removed.", call.=FALSE)
}
What happens, is that we first save column 3 of our data into the error variable, then a few lines below, we remove all NAs. At this point error has length 102, but data has length 101, and the additional warnings are thrown here because of this mismatch.
The text was updated successfully, but these errors were encountered:
The following generates unexpected warnings:
Warning 1 is fine as we raise it when we remove the
NA
s. However the other two are signalling a bug. Indeed, the following is incorrect:Luminescence/R/fit_SurfaceExposure.R
Lines 292 to 307 in 759a114
What happens, is that we first save column 3 of our data into the
error
variable, then a few lines below, we remove allNA
s. At this pointerror
has length 102, butdata
has length 101, and the additional warnings are thrown here because of this mismatch.The text was updated successfully, but these errors were encountered: