Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Merge branch 'feat/fix-issue-#68' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudius-Appel committed May 9, 2024
2 parents aa3dc9c + 03d94aa commit 391dff1
Show file tree
Hide file tree
Showing 47 changed files with 1,003 additions and 79 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: duflor.gui
Title: Frontend for duflor-package
Version: 0.0.1.9047
Version: 0.0.1.9048
Author: Claudius Appel
Authors@R: c(
person("Claudius", "Appel", email = "claudius.appel@freenet.de" , role = c("aut", "cre"))
Expand Down
35 changes: 25 additions & 10 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ This package requires the installation of the `duflor`-package, which implements

As this application is quite complex, it relies on a certain number of packages to work. The package `renv` can help with managing a reproducible package environment for a project. As an additional advantage, this also prevents packages in your system-library from being updated when installing this package.

For a proper documentation and information on its use-cases, refer to <https://rstudio.github.io/renv/index.html>.
For a proper documentation and information on its use-cases, refer to "<https://rstudio.github.io/renv/index.html>".

#### Install `renv`
#### Setup r-project with `renv`

To set up a stand-alone R-project with `renv`, the easiest way is through R-Studio:

Expand All @@ -42,21 +42,23 @@ To set up a stand-alone R-project with `renv`, the easiest way is through R-Stud
3. Select `New Project` as project-type[^1].
4. Give a distinct name to the project, e.g. `duflor.gui_installed`[^2].
5. Choose a location for the R-project.
6. [**Make sure that the check-box `Use renv with this project` is checked.**]{.underline}
6. [**Make sure that the check-box `Use renv with this project` is checked.**]{.underline}[^3]
7. Make sure the check-box `Open in new session` is checked.
8. Create the project.

[^1]: This might sound confusing, as this is a R-package wrapping a shiny-application. However, those two options are for ***developing*** either of those, not for ***installing*** them.

[^2]: The name is not really important, but it should be distinct and indicate that this is the installed application

[^3]: If `renv` is not installed/must be updated, you should be prompted to install it here.

From now on, this project can be opened from within R-Studio via the project-selection drop-down-menu in the top-right corner of the RStudio-application.

Before continuing, open this project if you did not do so.

#### Install `devtools`

First of all, make sure to have followed the steps outlined in "[Install renv]", and that RStudio is currently in your created project.
First of all, make sure to have followed the steps outlined in "[Setup r-project with renv]", and that RStudio is currently in your created project.

Installing this package from GitHub requires the installation of the R-package `devtools`. `devtools` can be used to compile source-packages to installed binaries.

Expand All @@ -66,7 +68,7 @@ install.packages("devtools")

When being asked to proceed, make sure that the installation-path is in the R-project you created:

If I created my R-project with `renv` at
If you created your R-project with `renv` at

```
C:/Users/User_Main/Desktop/TempTemporal/test_duflorgui_install
Expand All @@ -84,7 +86,21 @@ If this is correct, you can go ahead and answer the prompt with `Y`. If this is
2. Search for and select `devtools`.
3. Under "Install to library", make sure the path selected is similar to the example outlined above. In other words, make sure you do **not** install to the library containing the string `R/cache/R/renv/sandbox`.

Once you have installed `renv`, go on to "[Installing application itself]".
Once you have installed `devtools`, go on to the next step.

#### Install Rtools (windows-only) {#install-rtools-windows-only}

On windows, Rtools must be installed for your respective R-Version in order to compile packages from source. For more information, refer to "<https://r-pkgs.org/setup.html#setup-tools>".

If you are not on windows, you can skip this step. There are certain scenarios in which you will be unable to build packages from source on MacOS and linux machines as well. In these cases, refer to the documentation provided for the respective platform in the link above.

The R-package `installr` can be installed to check if Rtools is already installed, and whether or not it has been found by R. Additionally, it will notify the user if a new R-update is available (major and minor versions only, ignores patch versions):

``` r
install.packages("installr")
# once pkgbuild is installed, run:
installr::install.Rtools(check = T,check_r_update = T,GUI = T)
```

### Installation-steps

Expand Down Expand Up @@ -121,10 +137,9 @@ Vignettes are rendered documents discussing specific topics within a package. In
### Prerequisites

- R\>=4.3.3 is installed on the system, and can be launched from the command-line
- You can try executing `where R` or `which R` to see if R this prerequisite is met. Each command will print the path to the R-installation which is used from the command-line. If no path is found, R is not acessible from the command-line.
- You can try executing `where R` or `which R` to see if R this prerequisite is met. Each command will print the path to the R-installation which is used from the command-line. If no path is found, R is not accessible from the command-line.
- In this case, check how to make it accessible from the command-line for your respective system

### Installation-steps
- On windows "Rtools" must be installed for your corresponding R-Version in order to compile packages from source. For more information, refer to "<https://r-pkgs.org/setup.html#setup-tools>". Note that this package contains `C++`-code. Refer to the section "[Install Rtools (windows-only)](#install-rtools-windows-only)" for instructions to install Rtools on windows.

To install the application, follow the steps below:

Expand All @@ -148,7 +163,7 @@ To install the application, follow the steps below:

After installation, the application can be launched as described below:

1. cd into the folder in which you have installed the application in, e.g. `cd duflor_app`
1. `cd` into the folder in which you have installed the application in, e.g. `cd duflor_app`
2. launch R via `R`
3. launch the app via `duflor.gui::duflor_gui()`

Expand Down
52 changes: 40 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ advantage, this also prevents packages in your system-library from being
updated when installing this package.

For a proper documentation and information on its use-cases, refer to
<https://rstudio.github.io/renv/index.html>.
<https://rstudio.github.io/renv/index.html>.

#### Install `renv`
#### Setup r-project with `renv`

To set up a stand-alone R-project with `renv`, the easiest way is
through R-Studio:
Expand All @@ -42,7 +42,7 @@ through R-Studio:
e.g. `duflor.gui_installed`[^2].
5. Choose a location for the R-project.
6. <u>**Make sure that the check-box `Use renv with this project` is
checked.**</u>
checked.**</u>[^3]
7. Make sure the check-box `Open in new session` is checked.
8. Create the project.

Expand All @@ -54,8 +54,8 @@ Before continuing, open this project if you did not do so.

#### Install `devtools`

First of all, make sure to have followed the steps outlined in
\[Install renv\]”, and that RStudio is currently in your created
First of all, make sure to have followed the steps outlined in\[Setup
r-project with renv\]”, and that RStudio is currently in your created
project.

Installing this package from GitHub requires the installation of the
Expand All @@ -69,7 +69,7 @@ install.packages("devtools")
When being asked to proceed, make sure that the installation-path is in
the R-project you created:

If I created my R-project with `renv` at
If you created your R-project with `renv` at

C:/Users/User_Main/Desktop/TempTemporal/test_duflorgui_install

Expand All @@ -87,8 +87,29 @@ this is not the case, install devtools via the RStudio-GUI:
**not** install to the library containing the string
`R/cache/R/renv/sandbox`.

Once you have installed `renv`, go on to “\[Installing application
itself\]”.
Once you have installed `devtools`, go on to the next step.

#### Install Rtools (windows-only)

On windows, Rtools must be installed for your respective R-Version in
order to compile packages from source. For more information, refer to
<https://r-pkgs.org/setup.html#setup-tools>”.

If you are not on windows, you can skip this step. There are certain
scenarios in which you will be unable to build packages from source on
MacOS and linux machines as well. In these cases, refer to the
documentation provided for the respective platform in the link above.

The R-package `installr` can be installed to check if Rtools is already
installed, and whether or not it has been found by R. Additionally, it
will notify the user if a new R-update is available (major and minor
versions only, ignores patch versions):

``` r
install.packages("installr")
# once pkgbuild is installed, run:
installr::install.Rtools(check = T,check_r_update = T,GUI = T)
```

### Installation-steps

Expand Down Expand Up @@ -137,11 +158,15 @@ the package itself.
- You can try executing `where R` or `which R` to see if R this
prerequisite is met. Each command will print the path to the
R-installation which is used from the command-line. If no path is
found, R is not acessible from the command-line.
found, R is not accessible from the command-line.
- In this case, check how to make it accessible from the
command-line for your respective system

### Installation-steps
- On windows “Rtools” must be installed for your corresponding R-Version
in order to compile packages from source. For more information, refer
to “<https://r-pkgs.org/setup.html#setup-tools>”. Note that this
package contains `C++`-code. Refer to the section “[Install Rtools
(windows-only)](#install-rtools-windows-only)” for instructions to
install Rtools on windows.

To install the application, follow the steps below:

Expand Down Expand Up @@ -172,7 +197,7 @@ To install the application, follow the steps below:

After installation, the application can be launched as described below:

1. cd into the folder in which you have installed the application in,
1. `cd` into the folder in which you have installed the application in,
e.g. `cd duflor_app`
2. launch R via `R`
3. launch the app via `duflor.gui::duflor_gui()`
Expand All @@ -189,3 +214,6 @@ After installation, the application can be launched as described below:

[^2]: The name is not really important, but it should be distinct and
indicate that this is the installed application

[^3]: If `renv` is not installed/must be updated, you should be prompted
to install it here.
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 391dff1

Please sign in to comment.