R.matlab包看起来已损坏

时间:2011-02-14 09:02:21

标签: r matlab package

解决方案:R.matlab使用的包R.oo有一个名为getDate的函数。我在加载R.matlab包之前加载了另一个函数getDate()。


我无法加载R包R.matlab
任何人都有同样的问题?我有以下错误消息:

Loading required package: R.matlab
Error in as.POSIXlt.POSIXct(x, tz) : invalid 'tz' value
Error: package 'R.matlab' could not be loaded

编辑:它发生在2011年2月3日的最后一次更新

之后
> sessionInfo()    
R version 2.12.1 (2010-12-16)    
Platform: i386-pc-mingw32/i386 (32-bit)    
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] grDevices datasets  splines   graphics  stats     tcltk     utils     methods   base     
other attached packages: [1] R.oo_1.7.5                   R.methodsS3_1.2.1            waveslim_1.6.4               timeDate_2130.91             ncdf_1.6.5                   rgl_0.92.798                
 [7] fields_6.3                   spam_0.23-0                  splancs_2.01-27              sp_0.9-76                    maps_2.1-5                   shapefiles_0.6              
[13] foreign_0.8-41               scrapeR_0.1.6                XML_3.2-0.2                  mFilter_0.1-3                RCurl_1.5-0.1                bitops_1.0-4.1              
[19] outliers_0.14                chron_2.3-39                 lmtest_0.9-27                PerformanceAnalytics_1.0.3.2 RODBC_1.3-2                  quantmod_0.3-15             
[25] TTR_0.20-2                   xts_0.7-5                    zoo_1.6-4                    Defaults_1.1-1               rcom_2.2-3.1                 rscproxy_1.3-1              
[31] svSocket_0.9-51              TinnR_1.0.3                  R2HTML_2.2                   Hmisc_3.8-3                  survival_2.36-2             
loaded via a namespace (and not attached):
[1] cluster_1.13.2  grid_2.12.1     lattice_0.19-17 svMisc_0.9-61   tools_2.12.1   

2 个答案:

答案 0 :(得分:2)

这不是R.matlab的问题,而是与其他东西有关。我看到它说“加载所需的包:R.matlab”,所以命令来自其他地方。

> library(R.matlab)
Loading required package: R.oo
Loading required package: R.methodsS3
R.methodsS3 v1.2.1 (2010-09-18) successfully loaded. See ?R.methodsS3 for help.
R.oo v1.7.5 (2011-02-01) successfully loaded. See ?R.oo for help.
R.matlab v1.3.7 (2011-02-01) successfully loaded. See ?R.matlab for help.

在Windows 7上,R 2.12.1。

请提供您使用的加载R.matlab命令的完整详细信息。你可能想在R-help列表或R-devel列表上发布这个,这似乎是某种错误。将软件包维护者放在cc中总是一个好主意,所以他们知道。

会话信息:

> sessionInfo()
R version 2.12.1 (2010-12-16)
Platform: i386-pc-mingw32/i386 (32-bit)

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

attached base packages:
 [1] grid      grDevices datasets  splines   graphics  stats     tcltk     utils     methods   base     

other attached packages:
 [1] R.matlab_1.3.7     R.oo_1.7.5         R.methodsS3_1.2.1  reshape_0.8.3      plyr_1.2.1         gplots_2.8.0      
 [7] caTools_1.11       bitops_1.0-4.1     gdata_2.8.1        gtools_2.6.2       RColorBrewer_1.0-2 chron_2.3-39      
[13] xlsReadWrite_1.5.3 svSocket_0.9-51    TinnR_1.0.3        R2HTML_2.2         Hmisc_3.8-3        survival_2.36-2   

loaded via a namespace (and not attached):
[1] cluster_1.13.2  lattice_0.19-13 svMisc_0.9-61   tools_2.12.1

答案 1 :(得分:0)

解决方案:R.matlab使用的包R.oo有一个名为getDate的函数。我在加载R.matlab包之前加载了另一个函数getDate()。