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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -