PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 230 forks source link

find fqdn across platforms #3058

Closed dlebauer closed 1 year ago

dlebauer commented 1 year ago

Description

Add as.character(Sys.info()["nodename"]) if no env variable FQDN and hostname -f return empty strings.

Motivation and Context

hostname doesn't work on Windows. Fixes #3044

Perhaps a simpler option

replace function with fqdn <- function() as.character(Sys.info()["nodename"])

Review Time Estimate

Types of changes

Checklist: