A docker container for geocoding, assigning census tract, and deprivation index to addresses
GNU General Public License v3.0
3
stars
2
forks
source link
detecting Windows platform to disable parallel computing #6
Closed
cole-brokamp closed 2 years ago
Write into R script to detect if Docker is running on Windows and then change
parallel
toFALSE
here:https://github.com/cole-brokamp/cchmc_batch_geocoder/blob/c0ce0c14648f4d4f1f92f1af4668ac9ad33feb52/geocode.R#L79-L83
This would prevent the issue of it failing and having the user have to manually set the docker hypervisor to only use 1 CPU.
But is it even possible to detect the platform if the R process is running in Windows?
An alternative might be to default to non-parallel computation and provide a runtime flag to enable it.