Skip to content

Commit

Permalink
update documnetation for synr-1257 and synr-1516
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed Feb 4, 2024
1 parent 8ee91ce commit fcde0d8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions vignettes/synapser.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ connection <- file(filePath)
writeChar("a \t b \t c \n d \t e \t f \n", connection, eos = NULL)
close(connection)
file <- File(path = filePath, parent = project)
# Add a version comment
file$properties$versionComment <- 'Some sort of comment about the new version of the file.'
file <- synStore(file)
synId <- file$properties$id
```
Expand Down
15 changes: 14 additions & 1 deletion vignettes/troubleshooting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,20 @@ Now, you should be able to build Synapser.

Synapser is compatible with [reticulate](https://rstudio.github.io/reticulate/) and the two packages can be used together in the same R session.

As a workaround, if you wish to communicate with Synapse in an R session that also uses reticulate, you can use the [Synapse Python client](https://python-docs.synapse.org/build/html/index.html) through reticulate.
If you are getting this kind error:

```
synStore(tmp2)
Error in value[[3L]](cond) : 'concreteType'
```

As of synapser v2.0.0, it is still only compatible with reticulate v1.28 due to a miscellaneous update in [reticulate v1.29](https://rstudio.github.io/reticulate/news/index.html#misc-1-29). Specifically, `py_to_r()` now succeeds when converting subtypes of the built-in Python types (e.g. list, dict, str). Please install reticulate v1.28.

```
remotes::install_github('rstudio/reticulate@v1.28')
```

As a workaround, if you wish to communicate with Synapse in an R session that also uses reticulate, you can use the [Synapse Python client](https://python-docs.synapse.org/build/html/index.html) direclty through reticulate.


### Type Conversions
Expand Down

0 comments on commit fcde0d8

Please sign in to comment.