{"id":33190848,"url":"https://github.com/kreutz-lab/Rcall","last_synced_at":"2025-11-21T00:02:17.669Z","repository":{"id":49387623,"uuid":"271802881","full_name":"kreutz-lab/Rcall","owner":"kreutz-lab","description":"R function interface for Matlab","archived":false,"fork":false,"pushed_at":"2023-11-18T16:42:49.000Z","size":543,"stargazers_count":23,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-22T01:14:51.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kreutz-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-12T13:18:03.000Z","updated_at":"2024-08-24T20:28:27.000Z","dependencies_parsed_at":"2023-02-16T06:46:13.899Z","dependency_job_id":"164fd35f-3b88-4b0c-8819-939be9700d81","html_url":"https://github.com/kreutz-lab/Rcall","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kreutz-lab/Rcall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreutz-lab%2FRcall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreutz-lab%2FRcall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreutz-lab%2FRcall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreutz-lab%2FRcall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kreutz-lab","download_url":"https://codeload.github.com/kreutz-lab/Rcall/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreutz-lab%2FRcall/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285532343,"owners_count":27187706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-16T06:00:40.184Z","updated_at":"2025-11-21T00:02:17.662Z","avatar_url":"https://github.com/kreutz-lab.png","language":"MATLAB","funding_links":[],"categories":["Interfacing with other languages"],"sub_categories":[],"readme":"# Rcall: Calling R from MATLAB\nR and Matlab are two high-level scientific programming languages which are frequently applied\nin computational biology. To extend the wide variety of available and approved implementations, we present\nthe Rcall interface which runs in MATLAB and provides direct access to methods and software packages\nimplemented in R. Rcall involves passing the relevant data to R, executing the specified R commands\nand forwarding the results to MATLAB for further use. The evaluation and conversion of the basic data\ntypes in R and MATLAB are provided. Due to the easy embedding of R facilities, Rcall greatly extends the\nfunctionality of the MATLAB programming language.\n\nRcall is implemented in MATLAB and Octave and runs on Linux, Windows and macOS.\n\n## Installation\n[![View Rcall on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://de.mathworks.com/matlabcentral/fileexchange/104945-rcall)\n\nor\n```\ngit clone https://github.com/kreutz-lab/Rcall.git\n```\nor\n```\ngithub install kreutz-lab/Rcall\n```\nAdd the repository file path to your Matlab search path by addpath.m or by Home -\u003e Set Path -\u003e Add Folder.\n\n## Short Example\nTo demonstrate the easy use of Rcall, here is a small example. First, Rcall is initialized by defining the R path, R libraries and the R libraries path. The variables are passed to R by the 'Rpush' command. R commands are defined by the 'Rrun' command. Within the 'Rpull' command the R code is executed and the defined variables are load in the Matlab workspace. For error prouning, make sure the R packages are properly installed or installed beforehand.\n```\nRinit('limma')\nload('TestData.mat')\nRpush('dat',dat,'grp',grp) \nRrun('fit \u003c- lmFit(dat,grp)') \nfit = Rpull('fit');\nRclear\n```\n\nFor explanation of the input variables, the Rcall implementation and more application examples, see the [Rcall wiki](https://github.com/kreutz-lab/Rcall/wiki).\n\n## Finding Errors\nHere, strategies are mentioned to find errors, i.e. to resolve problems occurring when trying to execute R commands from matlab.\n* Check whether all packages that you try to use are installed in R\n* Check local files: If Rcall does not terminate properly, files indicating the problem might be available in your working directory. Inspect them and/or try to execute them directly in R.\n* If you changed the .Rprofile file, this can cause problems when it cannot be executed when R is starting. However, if R runs properly, this is also not an issue for Rcall\n* Check the global variable RCALL in Matlab. This variable contains the code you execute.\n\n## License\n\nBSD 3-Clause License\n\nCopyright (c) 2022, Janine Egert and Clemens Kreutz\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n## Author\nClemens Kreutz and Janine Egert\n\nInstitute of Medical Biometry and Statistics, \nFaculty of Medicine and Medical Center – University of Freiburg, Germany\n\nhttps://www.uniklinik-freiburg.de/imbi-en/msb.html\nckreutz at imbi.uni-freiburg.de\negert at imbi.uni-freiburg.de\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkreutz-lab%2FRcall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkreutz-lab%2FRcall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkreutz-lab%2FRcall/lists"}