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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -