The project is hosted at : https://github.com/AsexGenomeEvol
I will categorize functions by type (project specific will be somehow marked as well)
filter_thetas
- function for filtering thetassex_legend
- plots a sex/asex legendplot_log_hist
- plots y-log histogram of sex/asex datassplit
- split a string into vector of substringmake_data_frame
- create a data.frame with predefined column namestimema_pairs
- useful descriptors of species pairs (labels, divergence_times, ...)timemas
- timema species labels stored in a list (codes, labels, ...)asex_blue
, sex_red
- colours used for asexual and sexual speciesRscript install.R
,or using devtools
package, run R
and type
library(devtools)
install_github("AsexGenomeEvol/AsexStats", build_vignettes=FALSE)
Users on clusters classically do not have a root access and therefore they won't be able to install R packages to the common folders of all the users. To access an R package without root access you need to install the package on some alternative place (like your home) and tell R that there will be an alternative place to look for packages.
The very beginning is the same, download this package, then create a place for your local R packages (/home/$USER/R
in this example).
cd ~
git clone https://github.com/AsexGenomeEvol/AsexStats
mkdir -p /home/$USER/R
CMD INSTALL AsexStats -l /home/$USER/R
Now the package was installed to your home (~/R
). To tell R about the alternative path you set an environmental variable by adding the line export R_LIBS=/home/$USER/R
into your .bashrc
file (the setting file of your bash
)
echo "export R_LIBS=/home/$USER/R" >> ~/.bashrc
testthat
and it is integrated to installation (if test wont pass, installation fails)devtools
and roxygen2
make
for rebuilding package - however, the Makefile is not fully portable (yet?), you need to modify path to your R package inside of the makefile.*.R
) in folder data-raw
that will generate a *.rdata
data file in data
folderR/data.R
(use one of previous entries as template)Makefile
?mydata
) looks as expectedAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.