Hello,
I run R 4.2.2 on CentOS-7.6. I install  package through 
install.packages("sf").It threw the above error:


> install.packages('sf')
--- Please select a CRAN mirror for use in this session ---
 *** caught segfault ***
address 0x60, cause 'memory not mapped'
Traceback:
 1: download.file(url, destfile = f, quiet = TRUE)
 2: doTryCatch(return(expr), name, parentenv, handler)
 3: tryCatchOne(expr, names, parentenv, handlers[[1L]])
 4: tryCatchList(expr, classes, parentenv, handlers)
 5: tryCatch({ m <- download.file(url, destfile = f, quiet = TRUE) if (m != 0L) 
stop(gettextf("'download.file()' error code '%d'", m)) read.csv(f, as.is = 
TRUE, encoding = "UTF-8")}, error = function(err) { warning(gettextf("failed to 
download mirrors file (%s); using local file '%s'", conditionMessage(err), 
local.file), call. = FALSE, immediate. = TRUE) NULL})
 6: .getMirrors("https://cran.r-project.org/CRAN_mirrors.csv";, 
file.path(R.home("doc"), "CRAN_mirrors.csv"), all = all, local.only = 
local.only)
 7: getCRANmirrors(all = FALSE, local.only = local.only)
 8: chooseCRANmirror()
 9: contrib.url(repos, type)
10: startsWith(contriburl, "file:")
11: install.packages("sf")
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:




| |
Dezhi Wang
|
|
wangdezhist...@163.com
|
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to