作者:ggty11 | 来源:互联网 | 2023-09-25 21:48
当我尝试从.Rmd文件创建pdf时,出现以下错误:
*** caught segfault ***
address 0x110,cause 'memory not mapped'
Traceback:
1: py_call_impl(callable,dots$args,dots$keywords)
2: builtins$eval(compiled,globals,locals)
3: force(expr)
4: py_capture_output(builtins$eval(compiled,locals))
5: py_compile_eval(snippet)
6: reticulate::eng_python(options)
7: engine(options)
8: in_dir(input_dir(),engine(options))
9: block_exec(params)
10: call_block(x)
11: process_group.block(group)
12: process_group(group)
13: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group),error = function(e) { setwd(wd) cat(res,sep = "\n",file = output %n% "") message("Quitting from lines ",paste(current_lines(i),collapse = "-")," (",knit_concord$get("infile"),") ") })
14: process_file(text,output)
15: knit(...,tangle = opts_knit$get("tangle"),envir = envir)
16: knitr::knit_child(fname,envir = globalenv())
17: doTryCatch(return(expr),name,parentenv,handler)
18: tryCatchOne(expr,names,handlers[[1L]])
19: tryCatchList(expr,classes,handlers)
20: tryCatch(expr,error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]],quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call)[1L] prefix <- paste("Error in",dcall,": ") LONG <- 75L sm <- strsplit(conditionmessage(e),"\n")[[1L]] w <- 14L + nchar(dcall,type = "w") + nchar(sm[1L],type = "w") if (is.na(w)) w <- 14L + nchar(dcall,type = "b") + nchar(sm[1L],type = "b") if (w > LONG) prefix <- paste0(prefix,"\n ") } else prefix <- "Error : " msg <- paste0(prefix,conditionmessage(e),"\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg,file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg,class = "try-error",cOndition= e))})
21: try(knitr::knit_child(fname,envir = globalenv()))
22: FUN(X[[i]],...)
23: lapply(X = S,FUN = FUN,...)
24: doTryCatch(return(expr),handler)
25: tryCatchOne(expr,handlers[[1L]])
26: tryCatchList(expr,handlers)
27: tryCatch(expr,cOndition= e))})
28: try(lapply(X = S,...),silent = TRUE)
29: sendMaster(try(lapply(X = S,silent = TRUE))
30: FUN(X[[i]],...)
31: lapply(seq_len(cores),inner.do)
32: parallel::mclapply(fnames,knit_rmd,hashes = hashes,mc.cores = cores,mc.cleanup = TRUE)
33: jrNotes::create_notes()
34: eval(expr,envir,enclos)
35: eval(expr,enclos)
36: withVisible(eval(expr,enclos))
37: withCallingHandlers(withVisible(eval(expr,enclos)),warning = wHandler,error = eHandler,message = mHandler)
38: handle(ev <- withCallingHandlers(withVisible(eval(expr,message = mHandler))
39: timing_fn(handle(ev <- withCallingHandlers(withVisible(eval(expr,message = mHandler)))
40: evaluate_call(expr,parsed$src[[i]],envir = envir,enclos = enclos,debug = debug,last = i == length(out),use_try = stop_on_error != 2L,keep_warning = keep_warning,keep_message = keep_message,output_handler = output_handler,include_timing = include_timing)
41: evaluate::evaluate(...)
42: evaluate(code,envir = env,new_device = FALSE,keep_warning = !isFALSE(options$warning),keep_message = !isFALSE(options$message),stop_on_error = if (options$error && options$include) 0L else 2L,output_handler = knit_handlers(options$render,options))
43: in_dir(input_dir(),evaluate(code,stop_on_error = if (options$error && options$include) 0L else 2L,options)))
44: block_exec(params)
45: call_block(x)
46: process_group.block(group)
47: process_group(group)
48: withCallingHandlers(if (tangle) process_tangle(group) else process_group(group),") ") })
49: process_file(text,output)
50: knitr::knit(knit_input,knit_output,quiet = quiet)
51: rmarkdown::render("main.Rmd")
An irrecoverable exception occurred. R is aborting now ...
当我尝试使用matplot绘制事物时,我将其范围缩小了。除此之外,我几乎不知道该怎么办。
我曾尝试升级到R的最新版本并重新安装我的软件包,但这并没有帮助。有谁知道可能会发生什么?