Running examples in ‘SK-Ex.R’ failed
The error most likely occurred in:

> ### Name: skriging
> ### Title: Function for Segment-based Kriging models
> ### Aliases: skriging print.skriging plot.skriging
> 
> ### ** Examples
> 
> ## SRK: segment-based regression Kriging
> ## dataset 'vtest' is a sample of dataset 'vehicles'
> srk1 <- skriging(heavy ~ wpai + width, polyline = vtest, method = "srk",
+                  lwd = "width", obspred = "obs1pred0", boxcox = TRUE)
Warning in wkt(obj) : CRS object has no comment
Warning in wkt(obj) : CRS object has no comment
Error in method == "srk" && xx != 1 : 
  'length = 3' in coercion to 'logical(1)'
Calls: skriging
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘SK.Rmd’ using rmarkdown
Quitting from lines 67-71 (SK.Rmd) 
Error: processing vignette 'SK.Rmd' failed with diagnostics:
'length = 3' in coercion to 'logical(1)'
--- failed re-building ‘SK.Rmd’

SUMMARY: processing the following file failed:
  ‘SK.Rmd’

Error: Vignette re-building failed.
Execution halted
Running examples in ‘SK-Ex.R’ failed
The error most likely occurred in:

> ### Name: skriging
> ### Title: Function for Segment-based Kriging models
> ### Aliases: skriging print.skriging plot.skriging
> 
> ### ** Examples
> 
> ## SRK: segment-based regression Kriging
> ## dataset 'vtest' is a sample of dataset 'vehicles'
> srk1 <- skriging(heavy ~ wpai + width, polyline = vtest, method = "srk",
+                  lwd = "width", obspred = "obs1pred0", boxcox = TRUE)
Warning in wkt(obj) : CRS object has no comment
Warning in wkt(obj) : CRS object has no comment
Error in method == "srk" && xx != 1 : 
  'length = 3' in coercion to 'logical(1)'
Calls: skriging
Execution halted
Error(s) in re-building vignettes:
--- re-building ‘SK.Rmd’ using rmarkdown
Quitting from lines 67-71 (SK.Rmd) 
Error: processing vignette 'SK.Rmd' failed with diagnostics:
'length = 3' in coercion to 'logical(1)'
--- failed re-building ‘SK.Rmd’

SUMMARY: processing the following file failed:
  ‘SK.Rmd’

Error: Vignette re-building failed.
Execution halted