the getDWDhourly function loads packages inside the function. Dependency packges should be loaded when loading the package.