This is the multi-page printable view of this section. Click here to print.
Installing authoring tools
- 1: Installing tools for authoring model modules
- 2: Installing tools for authoring and managing model datasets
- 3: Installing tools for authoring reproducible analyses
1 - Installing tools for authoring model modules
Before you install
If you are a coder planning on using ready4 to author model modules, then you may wish to install the ready4class, ready4fun and ready4pack libraries.
However, please note that none of these libraries are yet available as a production release. You should therefore understand the limitations of using ready4 software development releases before you make the decision to install this software. We use these authoring tools intensively to help us write highly standardised model modules. However, we feel that these tools are most likely to be helpful to you once much more comprehensive documentation and training resources become available. Without this training and support, the requirements for complying with our house-style, file-naming, directory structure and workflow standards are unlikely to be sufficiently clear. We will be making these improvements, but for the mean time we recommend that, if you wish to use these authoring tools, you first get in touch with the project lead.
Installation
As ready4class and ready4fun are bundled as dependencies of ready4pack, you can install all three from our GitHub organisation using one command.
devtools::install_github("ready4-dev/ready4pack")
Configuration
To use these computational model authoring tools, you will need to have set-up and appropriately configured your own accounts in:
- GitHub (you will need write permissions to a GitHub organisation and to then enable GitHub actions and GitHub pages support for the repositories you create in that organisation);
- Zenodo (you will need to have linked each GitHub repository used for your ready4 projects to your Zenodo account); and
- Codecov (linked to your GitHub organisation).
The machine onto which you install ready4pack will also need to be securely storing your GitHub credentials (i.e. the value for the GITHUB_PAT token).
Try it out!
It should be noted that the development workflow supported by our computational model authoring tools is not yet well documented. We don’t recommend undertaking R package development with these tools until this has been rectified. However, if you still want to try these tools out, the best place to start is review the examples in the ready4class, ready4fun and ready4pack vignettes.
2 - Installing tools for authoring and managing model datasets
Before you install
If you are a coder or modeller planning to create, share and access model datasets with ready4, then you will need the ready4use library.
However, please note that ready4use is not yet available as a production release. You should therefore understand the limitations of using ready4 software development releases before you make the decision to install this software.
You may already have ready4use installed on your machine (e.g. if you have previously installed other ready4 framework and module libraries that include ready4use as a dependency). If you can run the following command without producing an error message, then you already have it.
find.package("ready4use")
Installation
You can install ready4use directly from its GitHub repository.
devtools::install_github("ready4-dev/ready4use")
Configuration
If one of your intended uses of ready4use is to share outputs in online datasets, you will need to have set up an account on a Dataverse installation (we recommend using the Harvard Dataverse). Some of the key terms and concepts relating to using a Dataverse installation in conjunction with ready4use are described in this tutorial.
You need to ensure that you have write permissions to any Dataverse Datasets that you plan to use to post files to. Furthermore, the machine on which you install ready4use should also securely store your Dataverse account credentials (specifically, values for the DATAVERSE_KEY and DATAVERSE_SERVER tokens). Details of how to do this are described in documentation for the dataverse R package, an important third party dependency package for ready4use.
Try it out
You should now be able to run the example code included in the package vignettes. To run all of this code you will need to replace the details of the Dataverse Dataset to which files are being written to those of your own Dataverse Dataset.
3 - Installing tools for authoring reproducible analyses
Before you install
If you are a coder or modeller planning to implement a reproducible analysis with ready4, you will need to install the ready4show library.
However, please note that ready4show is not yet available as a production release. You should therefore understand the limitations of using ready4 software development releases before you make the decision to install this software.
If you have installed other ready4 libraries, then ready4show may have already been installed as a dependency. If you can run the following command without producing an error message, then you already have it.
find.package("ready4show")
Installation
The ready4show library can be installed directly from its GitHub repository.
devtools::install_github("ready4-dev/ready4show")
Try it out!
Before you apply ready4show tools to your own project, you should make sure you can run some or all of the example code included in the package vignettes.