【问题标题】:r - foreach package returns error messager - foreach 包返回错误信息
【发布时间】:2018-08-08 19:40:48
【问题描述】:

我无法运行 foreach 包中的任何示例,而是收到以下错误消息

Error in UseMethod("conditionMessage") : 
  no applicable method for 'conditionMessage' applied to an object of class "NULL"

我尝试重新安装 foreach 包,但无济于事。

会话信息

R version 3.4.3 (2017-11-30)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] doSNOW_1.0.16     snow_0.4-2        doParallel_1.0.11 iterators_1.0.9   foreach_1.4.4     sp_1.2-7          RSQLite_2.0      

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.15       magrittr_1.5       bit_1.1-12         xtable_1.8-2       lattice_0.20-35    R6_2.2.2           rlang_0.2.0        blob_1.1.0         tools_3.4.4        grid_3.4.4         DBI_0.8           
[12] htmltools_0.3.6    crosstalk_1.0.0    yaml_2.1.17        bit64_0.9-7        leaflet_1.1.0.9000 digest_0.6.15      tibble_1.4.2       shiny_1.0.5        codetools_0.2-15   htmlwidgets_1.0    memoise_1.1.0     
[23] mime_0.5           compiler_3.4.4     pillar_1.2.1       httpuv_1.3.6.2 

非常感谢任何帮助!

【问题讨论】:

  • 能否请您提供导致错误的代码?

标签: r foreach parallel-processing


【解决方案1】:

我能够通过升级到 R-3.4.4 来解决这个问题

【讨论】:

    猜你喜欢
    • 2019-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-21
    • 2023-04-03
    • 1970-01-01
    相关资源
    最近更新 更多