[R] R-error

Dezhi Wang w@ngdezh|@tudy @end|ng |rom 163@com
Wed Apr 12 10:04:55 CEST 2023


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
|
|
wangdezhistudy using 163.com
|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R-error.png
Type: image/png
Size: 73929 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20230412/7df82b04/attachment.png>


More information about the R-help mailing list