SCM

Forum: developers

Monitor Forum | Start New Thread Start New Thread
RE: RHRV 4.0 lazy-load database problem - closed [ Reply ]
By: Günther Sawitzki on 2014-01-16 16:53
[forum:40418]
The problem was e.g.
Error in fetch(key) : lazy-load database '' is corrupt

After removing all RHRV a complete re-install and a completely clean restart, the problem did not reoccur so far.

So we should ignore it for now.

g.

P.S. What environment are you using? Rstudio? Roxygen2?
I am on R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Platform: x86_64-apple-darwin10.8.0 (64-bit)
R.app GUI 1.62 (6558) x86_64-apple-darwin10.8.0

RE: RHRV 4.0 [ Reply ]
By: Constantino Antonio on 2014-01-16 08:55
[forum:40324]
Hi,

I was reading some forums and one possibility is that
something in your R session could have being corrupted and
that this problem is just a symptom of this corruption.

The most common advice in these forums is to try starting an empty R session
(with nothing reloaded from .Rdata) and run until you find the error.
Then you could save the session history and post it here in order
to try to reproduce it. In some cases, restarting the R session was enough
to fix the problem...


Thanks for your help
Kind Regards

RE: RHRV 4.0 [ Reply ]
By: Günther Sawitzki on 2014-01-15 21:45
[forum:40321]
not ok:

> Sys.setlocale('LC_ALL','C')
[1] "C/C/C/C/C/en_GB.UTF-8"
>
trying URL 'http://R-Forge.R-project.org/src/contrib/RHRV_4.0.tar.gz'
Content type 'application/x-gzip' length 3137703 bytes (3.0 Mb)
opened URL
==================================================
downloaded 3.0 Mb

* installing *source* package ‘RHRV’ ...
** libs
llvm-gcc-4.2 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -fPIC -mtune=core2 -g -O2 -c pmodwpt.c -o pmodwpt.o
llvm-gcc-4.2 -arch x86_64 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -L/usr/local/lib -o RHRV.so pmodwpt.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Users/gs/Library/R/3.0/library/RHRV/libs
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (RHRV)

The downloaded source packages are in
'/private/var/folders/6g/ys6gpj4r8xjfww006s6mg4h80000gp/T/RtmpDwOU0s/downloaded_packages'
> library(RHRV)
> ?RHRV
> Error in fetch(key) : lazy-load database '' is corrupt

RE: RHRV 4.0 [ Reply ]
By: Constantino Antonio on 2014-01-15 21:39
[forum:40320]

Thanks for the reporting!

Could you check if setting your locale to

Sys.setlocale('LC_ALL','C')

suppresses the problems when installing from the R-forge? I
can't reproduce the problem in my computer.

Kind regards

RE: RHRV 4.0 [ Reply ]
By: Günther Sawitzki on 2014-01-15 21:30
[forum:40319]
follow up: a svn download and local build gave a package without problems(so far)
gs.

RHRV 4.0 [ Reply ]
By: Günther Sawitzki on 2014-01-15 21:16
[forum:40318]
Installing RHRV 4.0 from r-forge did not show any problems:

trying URL 'http://R-Forge.R-project.org/src/contrib/RHRV_4.0.tar.gz'
Content type 'application/x-gzip' length 3137703 bytes (3.0 Mb)
.....

After installing, help did not work.
For example:
> ?LoadBeat
Warning messages:
1: In fetch(key) : internal error -2 in R_decompress1
2: In strsplit(msg, "\n") : input string 1 is invalid in this locale

Some parts seem to be missing. For example, no recurrence plot.
> ls("package:RHRV")
[1] "AddEpisodes" "AnalyzeHRbyEpisodes"
[3] "AvgIntegralCorrelation" "BuildNIHR"
[5] "BuildTakensVector" "CalculateApEn"
[7] "CalculateFracDim" "CalculatePowerBand"
[9] "CalculateRfromCorrelation" "CalculateSpectrogram"
[11] "CreateFreqAnalysis" "CreateHRVData"
[13] "CreateNonLinearAnalysis" "CreateTimeAnalysis"
[15] "EditNIHR" "FilterNIHR"
[17] "GenerateEpisodes" "IntegralCorrelation"
[19] "InterpolateNIHR" "LoadApneaWFDB"
[21] "LoadBeat" "LoadBeatAscii"
[23] "LoadBeatEDFPlus" "LoadBeatPolar"
[25] "LoadBeatRR" "LoadBeatSuunto"
[27] "LoadBeatWFDB" "LoadEpisodesAscii"
[29] "LoadHeaderWFDB" "PlotHR"
[31] "PlotNIHR" "PlotPowerBand"
[33] "PlotSpectrogram" "ReadFromFile"
[35] "SetVerbose" "SplitHRbyEpisodes"
[37] "SplitPowerBandByEpisodes" "WriteToFile"


g.


Thanks to:
Vienna University of Economics and Business Powered By FusionForge