OpenMS
RWrapper.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/config.h>
12 
13 #include <QtCore/QString>
14 
15 class QStringList;
16 
17 namespace OpenMS
18 {
19 
20  class String;
21 
30  class OPENMS_DLLAPI RWrapper
31  {
32 public:
33 
34 
49  static String findScript(const String& script_file, bool verbose = true);
50 
58  static bool findR(const QString& executable = QString("Rscript"), bool verbose = true);
59 
60 
81  static bool runScript(const String& script_file, const QStringList& cmd_args, const QString& executable = QString("Rscript"), bool find_R = false, bool verbose = true);
82 
83  };
84 
85 }
86 
87 
88 
R-Wrapper Class.
Definition: RWrapper.h:31
static String findScript(const String &script_file, bool verbose=true)
Look for an R script in the share/OpenMS/SCRIPT folder.
static bool findR(const QString &executable=QString("Rscript"), bool verbose=true)
Check for presence of 'Rscript'.
static bool runScript(const String &script_file, const QStringList &cmd_args, const QString &executable=QString("Rscript"), bool find_R=false, bool verbose=true)
Run an R script with certain arguments on the command line.
A more convenient string class.
Definition: String.h:34
int verbose
Verbosity level ( "-v" is 1 and "-V" is 2 )
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19