Error(s) in re-building vignettes:
--- re-building 'custom_function_example.Rmd' using rmarkdown
Loading required package: sp

Attaching package: 'future'

The following object is masked from 'package:raster':

    values

Warning in x@data@values[i] <- value :
  number of items to replace is not a multiple of replacement length
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object '.slaveRSOCK' not found
Calls: ::: -> get
Execution halted
Quitting from lines 750-758 (custom_function_example.Rmd) 
Error: processing vignette 'custom_function_example.Rmd' failed with diagnostics:
Failed to launch and connect to R worker on local machine 'localhost' from local machine 'CRANWIN'.
 * The error produced by socketConnection() was: 'reached elapsed time limit' (which suggests that the connection timeout of 120 seconds (argument 'connectTimeout') kicked in)
 * The localhost socket connection that failed to connect to the R worker used port 11908 using a communication timeout of 2592000 seconds and a connection timeout of 120 seconds.
 * Worker launch call: "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpWk4KM6/future.parent=75516.126fc486ab57.pid\")), silent = TRUE)" -e "parallel:::.slaveRSOCK()" MASTER=localhost PORT=11908 OUT=/dev/null TIMEOUT=2592000 XDR=TRUE.
 * Worker (PID 147608) was successfully killed: TRUE
 * Troubleshooting suggestions:
   - Suggestion #1: Set 'verbose=TRUE' to see more details.
   - Suggestion #2: On Windows, output from worker when using 'outfile=NULL' is only visible when running R from a terminal (not a GUI).

--- failed re-building 'custom_function_example.Rmd'

--- re-building 'kangaroo_model_example.Rmd' using rmarkdown
Loading required package: sp

Attaching package: 'future'

The following object is masked from 'package:raster':

    values

--- finished re-building 'kangaroo_model_example.Rmd'

SUMMARY: processing the following file failed:
  'custom_function_example.Rmd'

Error: Vignette re-building failed.
Execution halted