switch(Sys.info()[['sysname']],
Windows= {print("I'm a Windows PC.")},
Linux = {print("I'm a penguin.")},
Darwin = {print("I'm a Mac.")})
Since it took me more than a trivial amount of time to sort this out, I thought other would benefit as well.
Regards,
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…