Hi, I want code to run on my laptop depending on what WiFi I am connected to (ie internally I access MySQL without password, externally with password). Currently I look for the gateway and then branch accordingly.
Is there any way of doing gateway = system("netstat -r -f inet -n|grep default|awk '{print $2}'", intern = T) within R other than running it as a system() call? greetings, el ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.