Skip to contents

Downloads a FAIR theory archive from a 'Git' remote repository or 'Zenodo'.

Usage

download_theory(id, path = ".")

Arguments

id

URL of the 'Git' repository or DOI of the 'Zenodo' archive.

path

Character, indicating the directory in which to create the FAIR theory.

Examples

download_theory(id = "https://github.com/cjvanlissa/tripartite_model.git",
path = file.path(tempdir(), "tripartite_git"))
#>  Creating theory repository at "/tmp/RtmptL2KGz/tripartite_git"
#>  Creating theory repository at "/tmp/RtmptL2KGz/tripartite_git" ... done
#> 
#>  Cloning repository from 'Git' remote
#>  Cloning repository from 'Git' remote ... done
#> 
download_theory(id = "10.5281/zenodo.14921521",
path = file.path(tempdir(), "tripartite_zenodo"))
#>  Creating theory repository at "/tmp/RtmptL2KGz/tripartite_zenodo"
#>  Creating theory repository at "/tmp/RtmptL2KGz/tripartite_zenodo" ... done
#> 
#>  Accessing record on 'Zenodo'
#>  Accessing record on 'Zenodo' ... failed
#> 
#>  Download ZIP archive
#>  Download ZIP archive ... failed
#> 
#>  Create local FAIR theory repository
#>  Create local FAIR theory repository ... failed
#>