If statement based on which computer uses a script in R -


how can identify computer in r?

i want share script someone, rather having comment out stuff, i'd rather use following:

if (currentpc == mypc) print{"stuff"}

is there platform independent, way (though suppose information such platform in identifying pc)? preferably using base package.

try of:

sys.info()[["nodename"]] sys.info()[["login"]] sys.info()[["user"]] 

or other components of sys.info() (or combination of them).


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -