This is an utility package where some useful functions frequently needed in the dowstream statistical analyses will be available.
This application is under development. Watch this repo or check for updates.
This package depends, so far, from: BiocParallel, minpack.lm, numDeriv, copula. There are also other dependencies which are included in R by default, e.g., start
if (!requireNamespace("BiocManager")) install.packages("BiocManager")
BiocManager::install()
BiocManager::install(c("BiocParallel","minpack.lm", "numDeriv", "copula",
"mclust", "nls2", "cubature", "mixdist"),
dependencies=TRUE)
The installation of "cubature" R package on CenOS (required by 'usefr') from the source, would produce some error when trying to compile the C++ code from the package source.
"/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ... cubature.so"
Or
"./src/divonne/Split.c:119:3: note: use option -std=c99 or -std=gnu99 to compile your code"
In the above situations, just proceed with the following steps (https://github.com/bnaras/cubature/issues/29):
If you do not have the folder ".R", then creates it. If you do not have the file "Makevars", then you can create an empty text file
Adds the following line to the the file "Makevars":
CFLAGS=-std=gnu99
if your file is empty, then you can add, e.g., something like this:
``` SOLARIS=$(shell $(R_HOME)/bin/Rscript -e 'cat(grepl("SunOS", Sys.info()["sysname"]))') ifeq ($(SOLARIS),TRUE) SOLARIS_FLAG=-DSOLARIS else SOLARIS_FLAG=-USOLARIS endif
CFLAGS=-std=gnu99
```
If the above step does not works then, follow the link: https://github.com/cdr/code-server/issues/347
BiocManager::install("genomaths/usefr")
Or download the binary of 'usefr' R package from here: https://is.gd/4BKQQN and in the R console type:
install.packages("usefr_0.1.0_R_x86_64-pc-linux-gnu.tar.gz",
repos = NULL, type = "source")
Sampling from a Mixture of Distributions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.