OpenMS
Loading...
Searching...
No Matches
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>
13
14#include <vector>
15
16namespace OpenMS
17{
18
27 class OPENMS_DLLAPI RWrapper
28 {
29public:
30
31
46 static String findScript(const String& script_file, bool verbose = true);
47
55 static bool findR(const String& executable = "Rscript", bool verbose = true);
56
57
78 static bool runScript(const String& script_file, const std::vector<String>& cmd_args, const String& executable = "Rscript", bool find_R = false, bool verbose = true);
79
80 };
81
82}
83
84
85
R-Wrapper Class.
Definition RWrapper.h:28
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 String &executable="Rscript", bool verbose=true)
Check for presence of 'Rscript'.
static bool runScript(const String &script_file, const std::vector< String > &cmd_args, const String &executable="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:32
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19