# synDS not in the server used in the tutorial for dsSynthetic?

**URL:** <https://datashield.discourse.group/t/synds-not-in-the-server-used-in-the-tutorial-for-dssynthetic/856>\
**Category:** Analyst Support\
**Created:** [4 October 2023 08:06 UTC](https://datashield.discourse.group/t/synds-not-in-the-server-used-in-the-tutorial-for-dssynthetic/856 "2023-10-04T08:06:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodilSbld](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bodilSbld](https://datashield.discourse.group/u/bodilSbld)\
**Post date:** [4 October 2023 08:06 UTC](https://datashield.discourse.group/t/synds-not-in-the-server-used-in-the-tutorial-for-dssynthetic/856/1 "2023-10-04T08:06:34Z")

</div>

Dear all,

I’m interested in trying out dsSynthetic following the tutorial ([dsSynthetic: A DataSHIELD package to generate synthetic data](https://tombisho.github.io/synthetic_bookdown)). The connection to the sandbox server works fine, but when I try ds.syn I recieve the error:

> datashield.errors() $server1 [1] “[Client error: (400) Bad Request] No such DataSHIELD ‘AGGREGATE’ method with name: synDS”

Checking the available methods by

> datashield.methods(connections, type=“aggregate”)

the only available methods seems to be from dsBase, version 6.3? Am I missing something or do the server need to be updated to allow synDS?

Kind regards, Bodil

---

<div class="post-metadata">

**Author:** ![tombishop](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/tombishop/32/23_2.png) [@tombishop](https://datashield.discourse.group/u/tombishop)\
**Post date:** [4 October 2023 09:09 UTC](https://datashield.discourse.group/t/synds-not-in-the-server-used-in-the-tutorial-for-dssynthetic/856/2 "2023-10-04T09:09:04Z")

</div>

Hi Bodil,

I’m pleased that you want to try out dsSynthetic! I can see that the package is not there on the sandbox server and will try and put that right this morning.

I’d be interested to hear how you get on. I suspect the problem we might run into is that it is easy to overwhelm the server when requesting a synthetic dataset as it requires a lot of processing power for larger datasets.

Tom

---

<div class="post-metadata">

**Author:** ![tombishop](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/tombishop/32/23_2.png) [@tombishop](https://datashield.discourse.group/u/tombishop)\
**Post date:** [4 October 2023 10:56 UTC](https://datashield.discourse.group/t/synds-not-in-the-server-used-in-the-tutorial-for-dssynthetic/856/3 "2023-10-04T10:56:05Z")

</div>

Hi Bodil,

I have made some changes and now the dsSynthetic package should be there. Do let me know if there are any other issues

Tom

---

<div class="post-metadata">

**Author:** ![bodilSbld](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bodilSbld](https://datashield.discourse.group/u/bodilSbld)\
**Post date:** [4 October 2023 13:33 UTC](https://datashield.discourse.group/t/synds-not-in-the-server-used-in-the-tutorial-for-dssynthetic/856/4 "2023-10-04T13:33:02Z")

</div>

Thank you Tom for your rapid response!

I’ve so far checked that I was able to get a local synthetic data set (10 000 observations, 10 variables) following section 3.1-3.2 in the tutorial. I use seed=123 in the ds.syn call as in the tutorial, but head(synth\_data) does not give exactly the same as in the tutorial. However, redoing the call with the same seed gives an identical data set to the first one I got and the mean of e.g. LAB\_TCS in the real data set on the server and in the synthetic data is very close (5.860897 vs. 5.865847), so I’m quite happy! The slight difference between the synthetic data in the tutorial and the one I got might be because of a newer version of R and/or dsBase and I would not bother too much about it.

I’ll continue testing in the next couple of days!

KR Bodil
