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
Post a Comment