r - Compression issue when saving anR project -
i solved problem moving r installation directory out of disk c. joris great suggestions! think r core team should take bug , against protecting mechanism of windows xp.
dear community:
while using biomod packages in r, following problem:
error in xzfile(file, "wb", compression = 9) : cannot open connection in addition: warning message: in xzfile(file, "wb", compression = 9) : cannot initialize lzma encoder, error 5
it said author of package , in file of "save" problem should caused lack of permission write. however, logging in administative account , have assess operations, have no idea problem is. can me out? need run package now. in advance~
sincerely, marco
below illustration in file of "save":
the common reason failure lack of write permission in current directory. 'save.image' , saving @ end of session shown messages like
error in gzfile(file, "wb") : unable open connection in addition: warning message: in gzfile(file, "wb") : cannot open compressed file '.rdatatmp', probable reason 'permission denied' defaults changed use compressed saves 'save' in 2.3.0 , 'save.image' in 2.4.0. recent version of r can read compressed save files, , compressed file can uncompressed (by 'gzip -d') use old versions of r.*
sorry ommision of information: here sessioninfo():
> sessioninfo() r version 2.12.2 (2011-02-25) platform: i386-pc-mingw32/i386 (32-bit) locale: [1] lc_collate=chinese_people's republic of china.936 [2] lc_ctype=chinese_people's republic of china.936 [3] lc_monetary=chinese_people's republic of china.936 [4] lc_numeric=c [5] lc_time=chinese_people's republic of china.936 attached base packages: [1] splines stats graphics grdevices utils datasets methods [8] base other attached packages: [1] biomod_1.1-6.8 foreign_0.8-42 gam_1.04 [4] randomforest_4.6-2 mda_0.4-1 class_7.3-3 [7] gbm_1.6-3.1 lattice_0.19-17 mass_7.3-11 [10] design_2.3-0 hmisc_3.8-3 survival_2.36-5 [13] rpart_3.1-48 nnet_7.3-1 ade4_1.4-16 [16] rgdal_0.6-33 dismo_0.5-19 rjava_0.9-0 [19] raster_1.7-47 sp_0.9-78 loaded via namespace (and not attached): [1] cluster_1.13.3 grid_2.12.2 tools_2.12.2
now found problem come form lzma encoder in doing "save":
> x<-runif(100) > save(x, file = "f:/test.gzip", compress='gzip') > save(x, file = "f:/test.xz", compress='xz') error in xzfile(file, "wb", compression = 9) : cannot open connection >
i had similar issue when trying project new scenario (a tables containing columns corresponding predictor variables) after having run modeling procedure using 8 models.
the first table (approx 250,000 rows) ran fine, , able save results .csv file. second 1 (approx 380,000 rows) resulted in above error message, , of files not written project folder.
i have since cut tables down maximum of 260,000 rows , no longer recieve error message. bit of pain doing in multiple runs, once had written script once, used find , replace in ms word change each run.
Comments
Post a Comment