Explore Connect Documentation
Snippets

Computing with Data

elgeish
663.2K views
GitHub

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content
Previous: Getting Started Next: Installing Packages

Executing Shell Commands

The function system(command) executes the given shell command:

1
2
3
4
5
6
7
# change directory to home directory
setwd("~")  
# display all files in current directory
dir(path = ".", all.files = TRUE)
# execute bash command ls -al (in Linux)
system("ls -al")  
Suggested playgrounds

Programmieraufgabe 1 - Quersumme

By
ferenc-hechler
503
0

PYTHON: BEGINNER QUIZ (10 Questions)

By
Code-Parser
8,303
437

Simple Python Test

By
Jouj_
5,317
54

Python from Zero to Hero

By
toEpam
15K
177
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content