library(curl)
library(jqr)
url <- paste0(
'https://raw.githubusercontent.com/',
'APSIMInitiative/ApsimX/master/Models/Resources/Wheat.json'
)
curl(url) %>%
jq('.. | select(.Name? == "PotentialBranchingRate")')
#> [
#> {
#> "$type": "Models.Functions.PhaseLookup, Models",
#> "Name": "PotentialBranchingRate",
#> "Children": [
#> {
#> "$type": "Models.Functions.PhaseLookupValue, Models",
#> "Start": "Emergence",
#> "End": "TerminalSpikelet",
#> "Name": "Vegetative",
#> "Children": [
#> {
#> "$type": "Models.Functions.LinearInterpolationFunction, Models",
#> "XProperty": "[Structure].LeafTipsAppeared",
#> "Name": "PotentialBranchingRate",
#> "Children": [
#> {
#> "$type": "Models.Functions.XYPairs, Models",
#> "X": [
#> 1,
#> 2,
#> 3,
#> 4,
#> 5,
#> 6,
#> 7,
#> 8
#> ],
#> "Y": [
#> 0,
#> 0,
#> 1,
#> 2,
#> 4,
#> 7,
#> 12,
#> 20
#> ],
#> "Name": "XYPairs",
#> "Children": [
#>
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> }
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> }
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> },
#> {
#> "$type": "Models.Functions.PhaseLookupValue, Models",
#> "Start": "TerminalSpikelet",
#> "End": "HarvestRipe",
#> "Name": "Reproductive",
#> "Children": [
#> {
#> "$type": "Models.Functions.Constant, Models",
#> "FixedValue": 0,
#> "Units": null,
#> "Name": "Zero",
#> "Children": [
#>
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> }
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> }
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> },
#> {
#> "$type": "Models.Functions.LinearInterpolationFunction, Models",
#> "XProperty": "[Structure].LeafTipsAppeared",
#> "Name": "PotentialBranchingRate",
#> "Children": [
#> {
#> "$type": "Models.Functions.XYPairs, Models",
#> "X": [
#> 1,
#> 2,
#> 3,
#> 4,
#> 5,
#> 6,
#> 7,
#> 8
#> ],
#> "Y": [
#> 0,
#> 0,
#> 1,
#> 2,
#> 4,
#> 7,
#> 12,
#> 20
#> ],
#> "Name": "XYPairs",
#> "Children": [
#>
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> }
#> ],
#> "IncludeInDocumentation": true,
#> "Enabled": true,
#> "ReadOnly": false
#> }
#> ]
Создано в 2019-02-21 пакетом представ (v0.2.1)