NCEAS / datateam-training

Training and reference materials for ADC and SASAP data team members
https://nceas.github.io/datateam-training/training/
Apache License 2.0
7 stars 22 forks source link

Update the set physical page to use SHA-256 #231

Closed laijasmine closed 3 years ago

laijasmine commented 3 years ago

https://nceas.github.io/datateam-training/reference/set-physical.html

so that it is more consistent with the ADC defaults. Something like:


physical <- set_physical(objectName = path,
                              size = as.character(file.size(path)),
                              sizeUnit = 'bytes',
                              authentication = digest(fpath, algo="sha256", serialize=FALSE, file=TRUE),
                              authMethod = 'SHA-256',
                              numHeaderLines = '1',
                              fieldDelimiter = ',',
                              url = paste0('https://cn.dataone.org/cn/v2/resolve/', id))