diff --git a/CRAN-SUBMISSION b/CRAN-SUBMISSION deleted file mode 100644 index bd79b66..0000000 --- a/CRAN-SUBMISSION +++ /dev/null @@ -1,3 +0,0 @@ -Version: 1.2.0 -Date: 2023-12-14 15:20:14 UTC -SHA: b6ee3df95fce786f319938ce59da5763fe76945d diff --git a/README.md b/README.md index f14dfdf..b06db2a 100644 --- a/README.md +++ b/README.md @@ -52,39 +52,52 @@ Installing from source might make sense if... not yet available on the CRAN version but is also likely less stable, - for some reason installation from CRAN is not an option for you. -In this case, - -1. Start by cloning this repository" - ``` - $ git clone git@github.com:kuadrat/growR.git - ``` - or via https: - ``` - $ git clone https://github.com/kuadrat/growR.git - ``` - This will create a directory `growR` in your file system. +In this case, start by cloning this repository +``` +$ git clone git@github.com:kuadrat/growR.git +``` +or via https: +``` +$ git clone https://github.com/kuadrat/growR.git +``` +This will create a directory `growR` in your file system. - If you don't have or don't want to use *git*, you could alternatively copy - the source code as a .zip file from - [github](https://github.com/kuadrat/growR/archive/refs/heads/master.zip). - Unzip the contents into a directory `growR`. - -2. You can now install *growR* by issuing the following at the prompt of - an `R` session: - ``` - install.packages("/full/path/to/growR", repos = NULL) - ``` - You should replace `"/full/path/to/"` with the actual path to the `growR` - directory on your computer. Also, replace slashes (`/`) with backslashe (`\`) - if you're on Windows. - -`growR` should now be installed and available in `R` through -`library(growR)`. +If you don't have or don't want to use *git*, you could alternatively copy +the source code as a .zip file from +[github](https://github.com/kuadrat/growR/archive/refs/heads/master.zip). +Unzip the contents into a directory `growR`. + +#### Alternative A +You can now install your local version of *growR* by issuing +the following at the prompt of an `R` session: +``` +install.packages("/full/path/to/growR", repos = NULL) +``` +You should replace `"/full/path/to/"` with the actual path to the `growR` +directory on your computer. Also, replace slashes (`/`) with backslashe (`\`) +if you're on Windows. + +`growR` should now be installed and available in `R` through `library(growR)`. If you make changes to the source files in the `growR` directory, just uninstall the current version (issue `remove.packages("growR")` in `R`) -and repeat step 2 above. +and repeat this step. + +#### Alternative B +If you make frequent changes to the code, it might be +unpractical to uninstall and reinstall the changed version each time. In that +case, `devtools` comes in very handy (if needed, install it with +`install.packages("devtools")`). It allows you to load a package into an active +`R` session without the need of it being properly installed. The following has +practically the equivalent result as the method described in +[alternative A](#alternative-a): +``` +library(devtools) +devtools::load_all("/full/path/to/growR") +``` +The notes about `"/full/path/to"` as in [Alternative A](#alternative-a) apply here as well. + ### Non-package version If you just want to focus on using and adjusting the ModVege model and feel diff --git a/cran-comments.md b/cran-comments.md deleted file mode 100644 index 0037a2f..0000000 --- a/cran-comments.md +++ /dev/null @@ -1,3 +0,0 @@ -## R CMD check results - -0 errors | 0 warnings | 0 notes