fdetsch / MODIS

Download and processing framework for MODIS imagery. The package provides automated access to the global online data archives LP DAAC, LAADS and NSIDC as well as processing capabilities such as file conversion, mosaicking, subsetting and time series.
Other
58 stars 27 forks source link

Problem with MODIS package installation #95

Open bholst505 opened 4 years ago

bholst505 commented 4 years ago

Hi,

I am trying to download and use the MODIS package but run into the following error when loading the package into an R session with the library() command:

library(MODIS) Error: package or namespace load failed for ‘MODIS’: .onAttach failed in attachNamespace() for 'MODIS', details: call: parse(ifelse(file.exists(optfile), optfile, tmpopt)) error: C:\Users\BRADY'~1\AppData\Local\Temp\RtmpKkWxHh/.MODIS_Opts.R:16:18: unexpected symbol 15: # Default output location for MODIS package processing results. 16: outDirPath <- 'C ^

The traceback is as follows:

traceback() 6: stop(msg, call. = FALSE, domain = NA) 5: value[3L] 4: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 3: tryCatchList(expr, classes, parentenv, handlers) 2: tryCatch({ attr(package, "LibPath") <- which.lib.loc ns <- loadNamespace(package, lib.loc) env <- attachNamespace(ns, pos = pos, deps, exclude, include.only) }, error = function(e) { P <- if (!is.null(cc <- conditionCall(e))) paste(" in", deparse(cc)[1L]) else "" msg <- gettextf("package or namespace load failed for %s%s:\n %s", sQuote(package), P, conditionMessage(e)) if (logical.return) message(paste("Error:", msg), domain = NA) else stop(msg, call. = FALSE, domain = NA) }) 1: library(MODIS)

Any help would be much appreciated, thank you!