Description Usage Arguments Details Examples
'org::InitialiseProject' takes in 2+ arguments. It then saves its results (i.e. folder locations) in 'org::PROJ', which you will use in all of your subsequent code.
1 2 |
HOME |
The folder containing 'Run.R' and 'code/' |
SHARED |
A folder inside ‘SHARED' with today’s date will be created and it will be accessible via 'org::PROJ$SHARED_TODAY' (this is where you will store all of your results) |
folders_to_be_sourced |
The names of folders that live inside 'HOME' and all .r and .R files inside it will be sourced into the global environment. |
codes_absolute |
If 'TRUE' then 'folders_to_be_sourced' is an absolute folder reference. If 'FALSE' then 'folders_to_be_sourced' is relative and inside 'HOME'. |
... |
Other folders that you would like to reference |
You need to run 'org::AllowFileManipulationFromInitialiseProject()' for this function to create today's folder (org::PROJ$SHARED_TODAY).
For more details see the help vignette:
vignette("intro", package = "org")
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
org::AllowFileManipulationFromInitialiseProject()
org::InitialiseProject(
HOME = "/git/analyses/2019/analysis3/",
SHARED = "/dropbox/analyses_results/2019/analysis3/",
RAW = "/data/analyses/2019/analysis3/"
)
org::PROJ$SHARED_TODAY
org::PROJ$RAW
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.