Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • CDMS
  • Frequently Asked Questions
  • Troubleshooting

API R package troubleshooting

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • CDMS
    Castor CDMS Manual Castor CDMS Calculations Manual Frequently Asked Questions Articles for Data Managers Castor CDMS Compliance Release Documents
  • eConsent
    Castor eConsent Manual Castor eConsent Compliance Release Documents
  • SMS
    Castor SMS Manual Castor SMS Compliance Release Documents
  • Castor Connect
    Castor Connect Compliance Release Documents Castor Connect Manual Castor Connect - Participant Quick Start Guide
  • Helpdesk
    News Other Resources Castor products knowledge resources
  • Status page
  • Completing a Study
+ More

Table of Contents

Keep packages updates Can't recycle Non-zero exit status Output containing blanks and NAs

This article contains solutions to the most common error messages and issues when using the Castor EDC R Package.

Keep packages updates

As a general concept it is important to note that R packages get updates separately. It is thus possible to have out-of-date packages installed that will impact the functioning of other packages. To avoid issues due to this mismatch, keep your packages updated, especially the ones that the Castor EDC package depends on: dplyr, tidyr, purr, glue, jsonlite, and httr.

Can't recycle

recycle() is a function that R applies to match the length of two arguments, usually vectors. When the sizes are incompatible, the following error will appear:

Error: Can't recycle `..1` (size 971) to match `..2` (size 0).

Note: the numbers will be different depending on the dataset

To fix this, update the tidyr package.

Non-zero exit status

This message can appear as the result of the installation of a package like Castor EDC:

Error: Failed to install 'castoRedc' from GitHub: (converted from warning) installation of package 'later' had non-zero exit status

Receiving this message means that the package was not installed. There can be different reasons why this happens, which means there are also different ways to fix this. The most common cause when installing the castoRedc package is the existence of unresolved dependencies. To resolve this you can use one of the following methods:

  • Force the installation of the dependencies at the same time by adding dependencies=TRUE:

# install.packages("remotes")
remotes::install_github("castoredc/castoRedc", dependencies=TRUE)
  • Install devtools and then use it to install the requested package:

require("devtools")
# install.packages("remotes")
remotes::install_github("castoredc/castoRedc")

Output containing blanks and NAs

Sometimes, the output of a call can return both blanks and NAs. This is not an error, neither is it random. What is the difference between the two values? 

If a field value is equal to NA in R, it means that the field never had a value. In other words, the field never contained any data for this particular record.

If the field value is equal to an empty text (i.e., you don't see a value at all, not even NA), then it is likely that the field contained data, but that this has been cleared again. This field value can be considered to be "", i.e., an empty string.

See this behavior in the following image:


api r package

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Data in a grid field has disappeared. How can I fix it?: EDC/CDMS
  • API troubleshooting: EDC/CDMS
  • How should I clear cookies and cache? EDC/CDMS
  • My study is not in the list - what happened? EDC/CDMS
ISO 27001
FDA - 21 CFR part 11
ICH GCP compliant
HIPAA compliant
CDISC
ISO 9001
gdpr compliant

Products & Industries

  • Electronic Data Capture (EDC)
  • ePRO
  • eConsent
  • Decentralized Clinical Trials (DCT)
  • Clinical Data Management
  • Medical Device & Diagnostics
  • Biotech & Pharma
  • CROs
  • Academic Research

Resources

  • Thought Leadership
  • Blog
  • Castor Academy
  • Knowledge Base

 

Company

  • About Us
  • Careers
  • News
  • Contact Support
  • Contact Us

Legal & Compliance

  • Terms of Use
  • Privacy & Cookie Statement
  • Responsible Disclosure Policy
  • Good Clinical Practice (GCP)
  • ISO Compliance Certificates
  • GDPR & HIPAA Compliance
  • Security Statement

© 2022, Castor. All Rights Reserved.

Follow us on social media


Knowledge Base Software powered by Helpjuice

Definition by Author

0
0
Expand