Skip to content

Commit cc4d49c

Browse files
authored
Merge pull request #122 from lifecycle-project/docs/armadillo3-support
docs: describe armadillo 3 compatibility
2 parents 3b24535 + 7cdb340 commit cc4d49c

1 file changed

Lines changed: 43 additions & 22 deletions

File tree

README.md

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This is a collections of tools used to upload data into DataSHIELD backends. It aids data mangers in the initial stages of uploading data to DataSHIELD backends.
55

66
## Usage
7-
Please check [uploading to DataSHIELD guide](https://lifecycle-project.github.io/ds-upload
7+
Please check [uploading to DataSHIELD guide](https://lifecycle-project.github.io/ds-upload)
88

99
For detailled function descrptions, please check: [references](https://lifecycle-project.github.io/ds-upload/reference/index.html) and above.
1010

@@ -14,45 +14,64 @@ Please check the [troubleshooting guide](https://github.com/lifecycle-project/ds
1414
## Adding new variables
1515
Please check: [adding new variables](https://github.com/lifecycle-project/ds-dictionaries/blob/master/README.md)
1616

17+
## Armadillo 3
18+
`dsUpload` Version 5.x.x is compatible with Armadillo 3. You should be able to install [dsUpload](https://lifecycle-project.github.io/ds-upload/articles/dsUpload.html) without specifying any additional versions. To install dsUpload, you have to install devtools first:
19+
``` r
20+
install.packages("devtools")
21+
```
22+
Then you will be able to install the newest version of dsUpload:
23+
``` r
24+
library(devtools)
25+
devtools::install_github("lifecycle-project/ds-upload")
26+
```
27+
1728
## Armadillo 2
1829
`dsUpload` Version 4.7.x is compatible with Armadillo 2. When installing this version of dsUpload, the `install.packages` command might install the newest version (incompatible) of `MolgenisArmadillo`.
1930
Run these commands (Rstudio) to install the correct version of MolgenisArmadillo:
2031

2132
Install devtools:
2233

23-
`install.packages("devtools")`
34+
``` r
35+
install.packages("devtools")
36+
```
2437

2538
Load devtools and install ds-upload 4.7.1
2639

27-
`library(devtools)`
28-
29-
`devtools::install_github("lifecycle-project/ds-upload@4.7.1")`
30-
31-
You will get the following error message
40+
``` r
41+
library(devtools)
42+
devtools::install_github("lifecycle-project/ds-upload@4.7.1")
43+
```
44+
You might get the following error message:
3245

3346
`namespace ‘MolgenisArmadillo’ 2.0.0 is being loaded, but == 1.1.3 is required`
3447

35-
Next you need to remove `MolgenisArmadillo`
48+
To fix this you need to remove the incompatible version of `MolgenisArmadillo`:
3649

37-
`unloadNamespace("MolgenisArmadillo")`
38-
39-
`remove.packages("MolgenisArmadillo")`
40-
41-
You might have to install these additional packages
50+
``` r
51+
unloadNamespace("MolgenisArmadillo")
52+
remove.packages("MolgenisArmadillo")
53+
```
4254

43-
`install.packages(c("aws.iam", "aws.s3"))`
55+
You might have to install these additional packages:
4456

45-
Next we install a previous version of `MolgenisArmadillo` 1.1.3
57+
``` r
58+
install.packages(c("aws.iam", "aws.s3"))
59+
```
4660

47-
`packageurl <- "https://cran.r-project.org/src/contrib/Archive/MolgenisArmadillo/MolgenisArmadillo_1.1.3.tar.gz"`
61+
Next we install a previous version of `MolgenisArmadillo` 1.1.3:
4862

49-
`install.packages(packageurl, repos=NULL, type="source")`
63+
``` r
64+
packageurl <- "https://cran.r-project.org/src/contrib/Archive/MolgenisArmadillo/MolgenisArmadillo_1.1.3.tar.gz"
65+
install.packages(packageurl, repos=NULL, type="source")
66+
```
5067

51-
Now we (again) install dsUpload 4.7.1
68+
Now we (again) install dsUpload 4.7.1:
5269

53-
`devtools::install_github("lifecycle-project/ds-upload@4.7.1")`
70+
``` r
71+
devtools::install_github("lifecycle-project/ds-upload@4.7.1")
72+
```
5473

55-
Make sure you do **NOT** update MolgenisArmadillo to another version then 1.1.3, select option **3**
74+
Make sure you do **NOT** update MolgenisArmadillo to another version then 1.1.3, if prompted, select option **3**
5675

5776
```
5877
Downloading GitHub repo lifecycle-project/ds-upload@4.7.1
@@ -70,7 +89,9 @@ Enter one or more numbers, or an empty line to skip updates: 3
7089

7190
After that you should be able to load `dsUpload` without any problems.
7291

73-
`library(dsUpload)`
92+
``` r
93+
library(dsUpload)
94+
```
7495

7596
If you are asked to update `MolgenisArmadillo` to version 2.0.x please skip,
76-
this in order for dsUpload 4.7.x to work with Armadillo 2.
97+
this in order for dsUpload 4.7.x to work with Armadillo 2.

0 commit comments

Comments
 (0)