我正在尝试运行一个涉及包装容积(查找双积分)的R代码,并不断出现一些异常错误。
当我在Mac上尝试代码时,它可以工作(我使用了部分数据,原始数据集包含1000个数据点),但是当我使用hpc时,它在花费了几个小时后最终出现以下错误。我试图修复它,但无法解决。您有什么建议吗?
*捕获了段错误*
address 0x6, cause 'memory not mapped'
Traceback:
1: adaptIntegrate(f, lowerLimit = c(0, 0), upperLimit = c(Inf, Inf))
2: mlogl(parameter, G)
3: fn(par, ...)
4: (function (par) fn(par, ...))(c(2.4565444712109, 4.35486392713201, 2.68167413499423, 3.99358777739855, 0.427859342210118))
5: optim(c(alpha.start, alpha_0.start, v1.start, v2.start, rho.start), logsum, R = R, method = "L-BFGS-B", lower = c(eps, eps, eps, eps, eps - 1), upper = c(Inf, Inf, Inf, Inf, 1 - eps))
6: mle(W, p_r)
An irrecoverable exception occurred. R is aborting now ...
/var/spool/slurmd/job8915586/slurm_script: line 14: 24219 Segmentation fault Rscript Program/part1.R