{"id":21074030,"url":"https://github.com/tomaztk/working_with_system_commands_in_r","last_synced_at":"2025-05-16T06:31:03.372Z","repository":{"id":56193081,"uuid":"231897589","full_name":"tomaztk/Working_with_system_commands_in_R","owner":"tomaztk","description":"Working with system commands in R","archived":false,"fork":false,"pushed_at":"2020-11-21T11:57:22.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-09T08:56:03.801Z","etag":null,"topics":["cli","cmd","r","r-language","r-programming"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomaztk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-05T09:56:08.000Z","updated_at":"2020-11-21T11:57:24.000Z","dependencies_parsed_at":"2022-08-15T14:20:57.070Z","dependency_job_id":null,"html_url":"https://github.com/tomaztk/Working_with_system_commands_in_R","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2FWorking_with_system_commands_in_R","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2FWorking_with_system_commands_in_R/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2FWorking_with_system_commands_in_R/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomaztk%2FWorking_with_system_commands_in_R/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomaztk","download_url":"https://codeload.github.com/tomaztk/Working_with_system_commands_in_R/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225411520,"owners_count":17470245,"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","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":["cli","cmd","r","r-language","r-programming"],"created_at":"2024-11-19T19:14:14.698Z","updated_at":"2024-11-19T19:14:15.345Z","avatar_url":"https://github.com/tomaztk.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Working with Windows CMD system commands in R\nR Examples for working with windows CMD commands from R code using \nthe following commands:\n\n1. fc / compare\n2. rename\n3. move / copy\n4. ping (pingpath)\n5. systeminfo\n6. tasklist (taskkill)\n7. ipconfig / netstat\n\n\nExample of using file compare from R: \n``` r\ncmd_command \u003c- \"FC\" \n#cmd_args \u003c- \"/a C:\\\\Users\\\\Tomaz\\\\iris_file1.csv C:\\\\Users\\\\Tomaz\\\\iris_file2.csv\"\ncmd_args \u003c- c('/a', file1, file2)\n\nrr \u003c- system2(command=cmd_command,\n            args= cmd_args, \n            stdout=TRUE,\n            stderr=TRUE, \n            wait = TRUE)\n\n```\n\n## Usage\nOpen the R file `cmd commands in R.R` in your favorite R IDE program and change your working directory. \n\n## Blog post\nMore information is available on the [blog post](https://tomaztsql.wordpress.com/2020/01/06/working-with-system-commands-in-r/).\n\n## Cloning the repository\nYou can follow the steps below to clone the repository. \n```\ngit clone -n https://github.com/tomaztk/Working_with_system_commands_in_R.git\n```\n\n\n## License\nThese samples and templates are all licensed under the MIT license.\n\n## Questions\nEmail questions to: tomaztsql@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomaztk%2Fworking_with_system_commands_in_r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomaztk%2Fworking_with_system_commands_in_r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomaztk%2Fworking_with_system_commands_in_r/lists"}