Commit 2560bc5a authored by De Boissieu Florian's avatar De Boissieu Florian
Browse files

fix bug from changes in functions args

parent d533a015
......@@ -19,9 +19,9 @@
#' @import tools
#' @export
projection.file <- function(file, type = 'raster'){
if (Type == 'raster'){
if (type == 'raster'){
obj <- raster(file)
} else if (Type == 'vector'){
} else if (type == 'vector'){
Shp.Path = dirname(file)
Shp.Name = file_path_sans_ext(basename(file))
obj = readOGR(dsn = Shp.Path,layer = Shp.Name,verbose = FALSE)
......
......@@ -21,7 +21,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>
#
# ===============================================================================
library(raster)
library(biodivMapR)
################################################################################
## DEFINE PARAMETERS FOR DATASET TO BE PROCESSED ##
################################################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment