callAdhereR: callAdhereR.

View source: R/call-adherer-external.R

callAdhereRR Documentation



The function encapsulating all the logics that allows AdhereR to be called from any platform using the generic shell mechanism.




A string containing the path to the directory where all the exchanged (shared) data (both input and output) is. AdhereR needs read and write access to this directory.


In most cases this should not be done directly by the user, but instead used by an appropriate wrapper on the client platform. It allows transparent use of AdhereR from virtually any platform or programming language for which an appropriate wrapper is provided. For more details see the vignette describing the included reference Python 3 wrapper.


This function displays any messages to the console, tries to also write them to the Adherer-results.txt file in the directory, and, when finished, forces R to quit with a given shell error code:

  • 0 The processing ended without major errors;

  • 1 General error (hopefully there are messages in the Adherer-results.txt file;

  • 10 The directory does not exit;

  • 11 AdhereR does not have read access to the directory;

  • 12 AdhereR does not have write access to the directory;

  • 13 issues with the parameters file parameters.log;

  • 14 issues with the data file dataset.csv;

  • 15 plotting issues;

  • 16 interactive plotting issues;

  • 17 issues exporting the results.

AdhereR documentation built on July 5, 2022, 5:08 p.m.