Displaying 5 results from an estimated 5 matches for "readfunct".
Did you mean:
readfuncs
2013 Jan 27
1
lapply and SpatialGridDataFrame error
Hi all, I have a set of 54 files that I need to convert from ASCII grid
format to .shp files to .bnd files for BayesX.
I have the following R code to operate on those files:
library(maptools)
library(Grid2Polygons)
library(BayesX)
library(BayesXsrc)
library(R2BayesX)
readfunct <- function(x)
{
u <- readAsciiGrid(x)
}
modfilesmore <- paste0("MaxFloodDepth_", 1:54, ".txt")
modeldepthsmore <- lapply(modfilesmore, readfunct)
maxdepth.plys <- lapply(modeldepthsmore, Grid2Polygons(modeldepthsmore,
level = FALSE))
layers <- paste0("...
2015 Feb 05
3
Rcurl crash in R-devel
...SCRIPTION"
> ftpUpload(what=filepath, to=urlx)
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Traceback:
1: .Call("R_curl_easy_perform", curl, .opts, isProtected,
.encoding, PACKAGE = "RCurl")
2: curlPerform(url = to, upload = TRUE, readfunction =
uploadFunctionHandler(file, asText), ..., curl = curl)
3: ftpUpload(what = filepath, to = urlx)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:
Hope it will help,
Sincerely,
Marc
2010 Nov 22
1
RCurl : All connection are used ?
...rl package. My goal is to Upload a lot of files from a local directory to a web server.
1st try :
for (i in 1:length(file)){
ftpUpload(what=files[i],to=files[i])
}
At i=11 I get : (my server has only 10 available open connections available) :
Erreur dans curlPerform(url = to, upload = TRUE, readfunction = uploadFunctionHandler(what, :
Got a 421 ftp-server response when 220 was expected
2 nd Try :
ftpConnection=getCurlHandle(userpwd=ftp$userpwd,maxconnects=1,fresh.connect=0)
for (i in 1:length(file)){
ftpUpload(what=files[i],to=files[i],curl=ftpConnection)
}
And I got this error after...
2015 Feb 06
0
Rcurl crash in R-devel
...at=filepath, to=urlx)
>
> *** caught segfault ***
> address 0x0, cause 'memory not mapped'
>
> Traceback:
> 1: .Call("R_curl_easy_perform", curl, .opts, isProtected,
> .encoding, PACKAGE = "RCurl")
> 2: curlPerform(url = to, upload = TRUE, readfunction =
> uploadFunctionHandler(file, asText), ..., curl = curl)
> 3: ftpUpload(what = filepath, to = urlx)
>
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection:
&...
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...ckage. My goal
is to Upload a lot of files from a local directory to a web server.
1st try :
for (i in 1:length(file)){
B B B B B ftpUpload(what=files[i],to=files[i])
}
At i=11 I get : (my server has only 10 available open connections available)
:
Erreur dans curlPerform(url = to, upload = TRUE, readfunction =
uploadFunctionHandler(what,B :
B Got a 421 ftp-server response when 220 was expected
2 nd Try :
ftpConnection=getCurlHandle(userpwd=ftp$userpwd,maxconnects=1,fresh.connect=
0)
for (i in 1:length(file)){
B B B B B ftpUpload(what=files[i],to=files[i],curl=ftpConnection)
}
And I got this err...