R package to optimize continuous resistance surfaces