Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rspacer cannot replace files when the template contains a missing field #10

Open
hleegwater opened this issue Nov 14, 2024 · 0 comments

Comments

@hleegwater
Copy link
Collaborator

I cannot replace a document using the Rspace API if there are missing numbers in the columnIndex, which is a parameter within fields. I tried replacing documents with other templates and it is fine if they have for example the LACDR-ISA - Study v1.0.0 template, but the Assay template does not work.

Screenshot of the error:
image

Code that you can use to see that the columnIndex is missing some numbers.

library(rspacer)
template_id <- "SD260025" # LACDR-ISA - Assay (General) v1.0.0
template_file <- rspacer:::doc_get_fields(template_id) |> 
  relocate(columnIndex)
head(template_file)

gives:
image

Using the field id instead, as described on https://community.researchspace.com/public/apiDocs > Documents > PUT did not solve the issue. I do not know why this error occurs and think that we should contact the people at Rspace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant