---
# System prepended metadata

title: 'WI-240089: Completeness Listing Shiny App Deployment (UAT)'
tags: [UAT, Shiny]

---

WI-240089: Completeness Listing Shiny App Deployment (UAT)
===

This document covers the deployment of the completeness listing application (stored [here on Gitlab](https://git.bmrn.com/Martin.Frigaard/completeness-listing-shiny)).

## Document Conventions

Regular text 

> Quoted external communications 

**WI instructions**

*"Responses"*

***Questions***

This is `in-line code`

```
R code (or Terminal commands)
```

***

The steps from the WI-240089 are detailed below: 

Number: WI-240089
Version: 3.0 
Status: Issued
Effective Date: 08 Apr 2022

-  **1.1. Log in to https://git.bmrn.com/. If you don’t have access to URL, please contact your R App Manager for approval.**

*Existing GitLab account (with code files in repo).* 


- **1.2. Log in to the RStudio Connect by navigating to the login URL in the table for the appropriate environment using a compatible web browser. If you do not have a compatible web browser, use a web browser within the Citrix SAS System Desktop to access the IDE.**

*I am accessing the RStudio through the Citrix environment.* 

- **1.3. Log in to the RStudio Server IDE by navigating to the login URL in the table above for the appropriate environment using a compatible web browser. If you do not have a compatible web browser, use a web browser within the Citrix SAS System Desktop to access the RStudio Server IDE.**

*There is no table above, but I accessed the IDE using the following link: *

https://aceshiny-uat.bmrn.com/rstudio/

- **1.4. Start a new session, if prompted.**

*I began with an empty session (no project)*

- **1.5. The first logging into the DEV instances, steps 2.4 to 2.18 should be completed. The first-time logging into QA or PROD, steps 2.4 to 2.18 should be completed. Proceed to section 3.0 on all subsequent.**

*This is the UAT environment, so I will complete steps 2.4 to 2.18.*

- **1.6. Configure your local git settings by running in the RStudio Server IDE Terminal:**

```bash=
git config --global user.name "<Developer Name>"
git config --global user.email "<Developer BioMarin Email Address>"
git config --global log.abbrevcommit yes
git config --global log.date rfc2822
```

*The git configuration was performed using the following commands:*

```bash=
git config --global user.name "Martin Frigaard"
git config --global user.email "martin.frigaard@bmrn.com"
git config --global log.abbrevcommit yes
git config --global log.date rfc2822
```

*Confirmation using the commands below:*

```bash=
[ma904058@bmnsa74a ~]$ git config --list
user.name=Martin Frigaard
user.email=martin.frigaard@bmrn.com
log.abbrevcommit=yes
log.date=rfc2822
```

- **1.7. Create an SSH Key by running: "ssh-keygen" using all the default values.**


*The following commands were used to generate the ssh-keygen.*


```bash=
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/export/home/ma904058/.ssh/id_rsa): 
# press enter
Enter passphrase (empty for no passphrase): 
# press enter 
Enter same passphrase again: 
Your identification has been saved in /export/home/ma904058/.ssh/id_rsa.
Your public key has been saved in /export/home/ma904058/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:3pNhZlunYWoP+0GOz1YlOpaFefP9HTw1R9TOGymJbE4 ma904058@bmnsa74a.bmrn.com
The key's randomart image is:
+---[RSA 2048]----+
|               .o|
|                o|
|          . .o.+.|
|           Eoo=+*|
|        S O ==+=B|
|       . = %=+.=o|
|        . X.+o  =|
|         . B..  o|
|          .o=    |
+----[SHA256]-----+ 
```

*You can also follow the instructions from [Happy Git and GitHub for the useR](https://happygitwithr.com/ssh-keys.html).*

- **1.8. Print the contents of the public SSH key by running the following command in the RStudio server IDE terminal:**

```bash
cat $HOME/.ssh/id_rsa.pub
```


- **1.9. Copy the contents to the clipboard by selecting the output, right clicking, and selecting “Copy”.**


*The ssh key will end with .bmrn*

```bash=
ssh-rsa AA
<...random jumble of text and numbers...>
.bmrn.com
```

+ **1.10. Navigate to https://git.bmrn.com/profile/keys in a new web browser tab.**

![](https://i.imgur.com/R3SPWzy.png)

![](https://i.imgur.com/1I7vz8H.png)


- **1.11. Paste the clipboard contents into the “Key” field by right-clicking in it, and selecting "Paste". Ensure the title is unique within the list on the page, if not assign a unique name.**

*I used "UAT RStudio key"*


- **1.12. Press “add key” to add the public key to your GitLab account.**

*I entered the copied ssh key into the dialog box below (along with a title)*

![](https://i.imgur.com/PWIuR6B.png)

*This will generate a fingerprint and send an email to your BioMarin account.*

- **1.13. Return to the RStudio Server IDE.**


- **1.14. Open the Tools menu and navigate to the Global Settings dialog**

*It's actually the 'Global Options'*

![](https://i.imgur.com/EzejzaM.png)

*The global options are below:*

![](https://i.imgur.com/J2L3gcC.png)


- **1.15. Select “Publishing” and verify that an entry is present for the URL of the current environment. If so, proceed to section 3.0, otherwise continue.**

*For this section, I entered the URL:* aceshiny-uat.bmrn.com

![](https://i.imgur.com/XLWrwX8.png)

I was told I have insufficient permissions, so I clicked on "Request permission to publish your own content."

- **1.16. Click the connect button and enter the URL of the current environment, proceed with the login to RStudio Connect as prompted. If user already have "publisher" permission, proceed to step 2.19, otherwise continue.**

###### tags: `Shiny` `UAT`
