[Gfoss] primi problemi grass + R

Eugenio Trumpy frippe12573 a hotmail.com
Lun 21 Lug 2008 14:50:25 CEST


Salve a tutti,
come mai se lancio il comando>ls da dentro R (giÓ dentro il mapset di grass) ottengo:

> ls
function (name, pos = -1, envir = as.environment(pos), all.names = FALSE, 
    pattern) 
{
    if (!missing(name)) {
        nameValue <- try(name)
        if (identical(class(nameValue), "try-error")) {
            name <- substitute(name)
            if (!is.character(name)) 
                name <- deparse(name)
            pos <- name
        }
        else pos <- nameValue
    }
    all.names <- .Internal(ls(envir, all.names))
    if (!missing(pattern)) {
        if ((ll <- length(grep("[", pattern, fixed = TRUE)))> 
            0 && ll != length(grep("]", pattern, fixed = TRUE))) {
            if (pattern == "[") {
                pattern <- "\\["
                warning("replaced regular expression pattern '[' by  '\\\\['")
            }
            else if (length(grep("[^\\\\]\\[<-", pattern)> 0)) {
                pattern <- sub("\\[<-", "\\\\\\[<-", pattern)
                warning("replaced '[<-' by '\\\\[<-' in regular expression pattern")
            }
        }
        grep(pattern, all.names, value = TRUE)
    }
    else all.names
}



Eugenio
_________________________________________________________________
CuriositÓ, trucchi e consigli per il tuo Messenger!
http://www.messenger.it


Maggiori informazioni sulla lista Gfoss