-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
73 lines (48 loc) · 1.91 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# L2TDatabaseExplorer
The goal of L2TDatabaseExplorer is to provide some interactive tools for
exploring our database.
## Getting started - RStudio
Connect to the University of Minnesota VPN.
Make sure you have [Git](https://git-scm.com/downloads) installed.
Clone the repository to your computer in RStudio. Go to File > New Project >
Version Control > Git. Use
https://github.com/LearningToTalk/L2TDatabaseExplorer.git as the URL.
Run the script in the file `setup.R` to install the needed packages.
The app looks for a file called `l2t_db.cnf` in this folder. If there is no such
file, create one using the function `L2TDatabase::make_cnf_file()` and valid
user credentials and the network address of the database. These can be found on
the L2T wiki page about the database.
Run `run.R` from RStudio to launch the app in a browser.
Run `update.R` to pull the latest changes from GitHub. This should work if you
have not edited any of the files in the repository.
## Getting started - Programmatically
If you can use the command line, and have R/git/pandoc on your system path, and
have an `R_LIBS_USER` system environment variable--you probably do not--you can
launch the app from the command line.
Connect to the University of Minnesota VPN.
Clone this repository.
```{bash, eval = FALSE}
git clone https://github.com/LearningToTalk/L2TDatabaseExplorer.git
cd L2TDatabaseExplorer
```
Run setup script. This will install the packages required to use the app.
```{bash, eval = FALSE}
Rscript setup.R
```
Create the `.cnf` as described above.
Now, you can launch the app. It should work if you have a connection to the UMN
VPN and valid credentials saved for the database.
```{bash, eval = FALSE}
Rscript run.R
```