• Downloads a pubmed xml file given the file numbe and optional directory to save the file too. If dir is unset then the default_data_dir is used which can be set by calling set_default_data_dir

    Note: this executes a shell command and assumes that "curl" is available If it is not, the command will fail.

    Parameters

    • num: number
    • dir: string

    Returns Promise<void>