Wanted to pass on a couple of very small errors in the ‘rsyncrosim:introduction to spatial data’ article that tripped me up for a moment.
1) ‘raster-image.tif’ name should be ‘input-raster.tif’
# Create input data and add it to the input data frame
***myInputRow <- data.frame(mMean = 0, mSD = 4,
InterceptRasterFile = “path/to/raster-image.tif”)***
2) The RunControl Datasheet for “helloworldSpatial_RunControl” only has 3 columns. The article mistakenly indicates that there are 4 columns. When creating the RunControl data and adding it to the RunControl Data frame the user gets an error unless they remove the ‘MinimumIteration=1’ line.
***runSettingsRow <- data.frame(MinimumIteration = 1,
MaximumIteration = 5,
MinimumTimestep = 1,
MaximumTimestep = 10)
runSettings <- addRow(runSettings, runSettingsRow)***