# Installation query and test data

**URL:** <https://datashield.discourse.group/t/installation-query-and-test-data/426>\
**Category:** Beginner Support\
**Created:** [21 July 2021 15:27 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426 "2021-07-21T15:27:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Bala](https://datashield.discourse.group/u/Bala)\
**Post date:** [21 July 2021 15:27 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/1 "2021-07-21T15:27:02Z")

</div>

Dear Dshield team, Congratulations for the great efforts.

Installation query: After setting up opal and R (both in same VM). I installed opalr, dsBase and resourcer (through opal) on the server side. On the client side (analysis R environment), i installed dsbaseclient, DSI, DSopal. Do i need to install any other packages either on the Server or Client sides?.

testdata: I am looking for some test data (.csv and associated data-dictionary template) as required by opal to test my installations. Any idea where i can find one. Best regards, Bala

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [21 July 2021 15:47 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/2 "2021-07-21T15:47:55Z")

</div>

Bala,

Those are the basic packages which are required to perform federated analysis, for packages for additional analysis check [Community Packages](https://www.datashield.org/help/community-packages)

Test datasets are available from [puppet-datashield/files/testdata at master · datashield/puppet-datashield · GitHub](https://github.com/datashield/puppet-datashield/tree/master/files/testdata), the test data is in “Opal Archive” format (.zip) for quick upload and CSVs with Data Dictionaries if you prefer.

Stuart

---

<div class="post-metadata">

**Author:** ![Bala](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Bala](https://datashield.discourse.group/u/Bala)\
**Post date:** [21 July 2021 22:00 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/3 "2021-07-21T22:00:10Z")

</div>

Hi Stuart, Thank you for the inputs. a) I first tested my client side installation by connecting to tables available in [https://opal-demo.obiba.org/](https://opal-demo.obiba.org/)" and applying some basic statistical analysis. It worked very well.

b) Then i uploaded a the test data from puppet-datashield you suggested to the in-house open server i setup on our cloud. In this case, datashield is able to contact the server but i am not able to apply a function. Since i am new to R, i am not getting where i am making a mistake. Any input from Datashield users would be of great help. I am pasting the output of R session below.

## Thanks, Bala

> logindata ← builder$build()

> conns ← datashield.login(logins = logindata, assign=TRUE, symbol=“D”)

Logging into the collaborating servers Logged in all servers [================================================================] 100% / 1s

No variables have been specified. All the variables in the table (the whole dataset) will be assigned to R!

Assigning table data… Assigned all tables [==================================================================] 100% / 1s

> # Data dimensions information

> ds.dim(x = ‘D’) Aggregated (dimDS(“D”)) [==============================================================] 100% / 0s Error: There are some DataSHIELD errors, list them with datashield.errors()

> datashield.errors() $study1 [1] “Command ‘dimDS("D")’ failed on ‘study1’: No such DataSHIELD ‘AGGREGATE’ method with name: dimDS”

---

<div class="post-metadata">

**Author:** ![Bala](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@Bala](https://datashield.discourse.group/u/Bala)\
**Post date:** [21 July 2021 22:17 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/4 "2021-07-21T22:17:47Z")

</div>

**solved it** : I just figured it out that i have to _publish the ‘dsBase’ functions in the opal server_ in order to be used by the client. I am leaving my leaving previous post undeleted so that someone in future may benefit.

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [25 July 2021 17:06 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/5 "2021-07-25T17:06:46Z")

</div>

Hi,

1. opalr does not need to be installed in the R server, because it is an Opal client package (i.e. used to communicate with Opal).

2. when installing DataSHIELD packages (e.g. dsBase), do it via the page _Administration \> DataSHIELD_ (and not _Administration \> R_) so that the package’s functions are automatically published. You can also use the [opalr::dsadmin.install\_package](https://www.obiba.org/opalr/reference/dsadmin.install_package.html) function.

Regards  
Yannick

---

<div class="post-metadata">

**Author:** ![cdoe](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cdoe](https://datashield.discourse.group/u/cdoe)\
**Post date:** [10 November 2021 09:09 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/6 "2021-11-10T09:09:25Z")

</div>

Hi,

I have another question about the packages that Bala has listed:

Are DSI and DSOpal necessary on the client side? They are not listed under the Community Packages on your website, so I had the impression that they become redundant with dsBaseClient. I am missing an overview of which packages are absolutely necessary on the server and client side for the implementation of DataSHIELD…

Kind regards, Charlotte

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [10 November 2021 10:24 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/7 "2021-11-10T10:24:59Z")

</div>

Hi,

Yes, DSOpal is required to connect to a Datashield server that uses Opal. When installing DSOpal, you’ll get DSI as well. DSI and DSOpal are not performing any computations, they are establishing the connection with the Datashield servers (i.e. broadcasting analysis requests, receiving responses). Then dsBaseClient (and any other Datashield client analysis packages) depends on DSI.

Regards  
Yannick

---

<div class="post-metadata">

**Author:** ![cdoe](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@cdoe](https://datashield.discourse.group/u/cdoe)\
**Post date:** [10 November 2021 10:57 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/8 "2021-11-10T10:57:04Z")

</div>

Hi Yannick,

many thanks for your reply! So I’m summarising the minimum requirements mentioned in this thread (for posterity 😉) -

Server:

- resourcer
- dsBase

Client:

- opalr
- DSOpal (DSI already included)
- dsBaseClient (additional analysis packages available, see [Community Packages](https://www.datashield.org/help/community-packages))

Hope this helps anyone who also needed this overview.

Best, Charlotte

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [10 November 2021 11:14 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/9 "2021-11-10T11:14:26Z")

</div>

Hi Charlotte,

I would regard opalr, DSOpal, DSI as Middleware packages of DataSHIELD, as apposed to Analysis packages.

I will create a new page on the website which covers these package (both Opal and Armadilo)

Stuart

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [10 November 2021 12:03 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/10 "2021-11-10T12:03:41Z")

</div>

You should have a look at this cookbook, it will give you some useful information both for the client and server setups:

[https://opaldoc.obiba.org/en/latest/cookbook/r-datashield.html](https://opaldoc.obiba.org/en/latest/cookbook/r-datashield.html)

---

<div class="post-metadata">

**Author:** ![gabriella\_m](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@gabriella\_m](https://datashield.discourse.group/u/gabriella_m)\
**Post date:** [15 November 2021 11:15 UTC](https://datashield.discourse.group/t/installation-query-and-test-data/426/11 "2021-11-15T11:15:42Z")

</div>

Hi Yannick,

Many thanks, I will look at it!

All the best

Gabriella
