Skip to content

bachlab/CogLearn

Repository files navigation

CogLearn: Analysis R package

R package with generic analysis tools for CogLearn data generated with the CogLearn Unity package. Brought to you by Bachlab at Universität Bonn and University College London

Documentation: https://bachlab.gitlab.io/coglearn/coglearn/

How to install the package from GitLab:

You can install the development version of CogLearn by running the following code

# install.packages("devtools")
devtools::install_github("bachlab/CogLearn")

NOTE

(1)the CogLearn package is not currently available on CRAN as it heavily uses tidyverse-style non-standard evaluation which is not accepted on CRAN. This may change in the future.

(2) After installation, run the following code to use the CogLearn package

library(tidyverse)
library(CogLearn)

Scripts

Scripts containing the functions for this package are located in the R directory. All functions here are added and available to use when you install the package.

Testing

So far no unit tests have been developed.

Development

Several shortcut functions for development are in the shortcuts.R script. You can use these to build documentation, the documentation website, run tests, etc.

General information on package development: https://r-pkgs.org/man.html

How to use tidyverse in a package: https://tidyr.tidyverse.org/articles/in-packages.html

Quick tips:

  • Functions should be in scripts stored in the R folder.
  • If you need to use functions from another package, you should call them explicitly (e.g. dplyr::filter(...)). Dependencies should be added to the imports in the DESCRIPTION file.
  • You can use RStudio to generate documentation skeleton for functions.
  • Follow the Tidyverse Style Guide.

Some types of functions and naming conventions

tbc

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages