{
  "_id": "6a1f07d3b401979e7341bf7c",
  "Package": "metafolio",
  "Type": "Package",
  "Title": "Metapopulation Simulations for Conserving Salmon Through\nPortfolio Optimization",
  "Version": "0.1.2",
  "Authors@R": "c(person(given = c(\"Sean\", \"C.\"),\nfamily = \"Anderson\",\nrole = c(\"aut\", \"cre\"),\nemail = \"sean@seananderson.ca\",\ncomment = c(ORCID = \"0000-0001-9563-1937\")),\nperson(c(\"Jonathan\", \"W.\"), \"Moore\", role = \"ctb\"),\nperson(c(\"Michelle\", \"M.\"), \"McClure\", role = \"ctb\"),\nperson(c(\"Nicholas\", \"K.\"), \"Dulvy\", role = \"ctb\"),\nperson(c(\"Andrew\", \"B.\"), \"Cooper\", role = \"ctb\"))",
  "Description": "A tool to simulate salmon metapopulations and apply\nfinancial portfolio optimization concepts. The package\naccompanies the paper Anderson et al. (2015)\n<doi:10.1101/2022.03.24.485545>.",
  "License": "GPL-2",
  "URL": "https://github.com/seananderson/metafolio",
  "BugReports": "https://github.com/seananderson/metafolio/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.2.3",
  "Encoding": "UTF-8",
  "Repository": "https://seananderson.r-universe.dev",
  "Date/Publication": "2024-02-10 22:47:16 UTC",
  "RemoteUrl": "https://github.com/seananderson/metafolio",
  "RemoteRef": "HEAD",
  "RemoteSha": "edafee56a0cbf4eb6375a57123becbdef967a055",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-18 06:33:55 UTC",
    "User": "root"
  },
  "Author": "Sean C. Anderson [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-9563-1937>),\nJonathan W. Moore [ctb],\nMichelle M. McClure [ctb],\nNicholas K. Dulvy [ctb],\nAndrew B. Cooper [ctb]",
  "Maintainer": "Sean C. Anderson <sean@seananderson.ca>",
  "MD5sum": "2899aaf9357ca9d45667bb9d7dc77bbf",
  "_user": "seananderson",
  "_type": "src",
  "_file": "metafolio_0.1.2.tar.gz",
  "_fileid": "65d28f15ff4cd086297991ba46751a9b8b4c164795b863ea42bc9d7cbed9d4d7",
  "_filesize": 1064342,
  "_sha256": "65d28f15ff4cd086297991ba46751a9b8b4c164795b863ea42bc9d7cbed9d4d7",
  "_created": "2026-05-18T06:33:55.000Z",
  "_published": "2026-06-02T16:41:55.821Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79123136035,
      "time": 129,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7051005353"
    },
    {
      "job": 79123135464,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7051003174"
    },
    {
      "job": 79123135772,
      "time": 113,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7051001629"
    },
    {
      "job": 79123136112,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7051004496"
    },
    {
      "job": 79123135984,
      "time": 158,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7051005989"
    },
    {
      "job": 79123136302,
      "time": 432,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7051067661"
    },
    {
      "job": 79123135567,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7051004741"
    },
    {
      "job": 79123135571,
      "time": 383,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7051054378"
    },
    {
      "job": 79123135853,
      "time": 212,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7050972335"
    },
    {
      "job": 79123135237,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7364061194"
    },
    {
      "job": 79123135450,
      "time": 122,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7051003907"
    },
    {
      "job": 79123135845,
      "time": 121,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7051003305"
    },
    {
      "job": 79123135766,
      "time": 142,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7051008301"
    }
  ],
  "_buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/seananderson/metafolio",
  "_commit": {
    "id": "edafee56a0cbf4eb6375a57123becbdef967a055",
    "author": "Sean Anderson <sean@seananderson.ca>",
    "committer": "Sean Anderson <sean@seananderson.ca>",
    "message": "Remove TeachingDemos as per CRAN request\n",
    "time": 1707605236
  },
  "_maintainer": {
    "name": "Sean C. Anderson",
    "email": "sean@seananderson.ca",
    "login": "seananderson",
    "description": "",
    "uuid": 19349,
    "orcid": "0000-0001-9563-1937"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.2",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "colorspace",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    }
  ],
  "_owner": "seananderson",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "seananderson",
      "count": 589,
      "uuid": 19349
    },
    {
      "user": "nickdulvy",
      "count": 3,
      "uuid": 5943202
    }
  ],
  "_userbio": {
    "uuid": 19349,
    "type": "user",
    "name": "Sean Anderson"
  },
  "_downloads": {
    "count": 765,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/metafolio"
  },
  "_devurl": "https://github.com/seananderson/metafolio",
  "_searchresults": 92,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/metafolio.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/seananderson/metafolio",
  "_realowner": "seananderson",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2014-07-10"
    },
    {
      "version": "0.1.1",
      "date": "2022-04-12"
    },
    {
      "version": "0.1.2",
      "date": "2023-10-20"
    }
  ],
  "_exports": [
    "count_quasi_exts",
    "create_asset_weights",
    "CVaR",
    "fit_ricker",
    "generate_env_ts",
    "generate_straying_matrix",
    "get_port_vals",
    "gg_color_hue",
    "impl_error",
    "meta_sim",
    "monte_carlo_portfolios",
    "plot_cons_plans",
    "plot_correlation_between_returns",
    "plot_efficient_portfolios",
    "plot_rickers",
    "plot_sim_ts",
    "plot_sp_A_ts",
    "ricker",
    "ricker_escapement",
    "ricker_v_t",
    "run_cons_plans",
    "thermal_curve_a",
    "thermal_integration",
    "VaR"
  ],
  "_help": [
    {
      "page": "add_dens_polygon",
      "title": "Add a kernel density polygon",
      "topics": [
        "add_dens_polygon"
      ]
    },
    {
      "page": "annotate",
      "title": "Add annotations to panel",
      "topics": [
        "annotate"
      ]
    },
    {
      "page": "count_quasi_exts",
      "title": "Take 'meta_sim' output objects and count quasi extinctions",
      "topics": [
        "count_quasi_exts"
      ]
    },
    {
      "page": "create_asset_weights",
      "title": "Create an asset weights matrix",
      "topics": [
        "create_asset_weights"
      ]
    },
    {
      "page": "custom_bw",
      "title": "Custom bandwidth",
      "topics": [
        "custom_bw"
      ]
    },
    {
      "page": "CVaR",
      "title": "Conditional Value at Risk",
      "topics": [
        "CVaR"
      ]
    },
    {
      "page": "est_beta_params",
      "title": "Get beta parameters from mean and variance",
      "topics": [
        "est_beta_params"
      ]
    },
    {
      "page": "fastlm",
      "title": "Super fast linear regression",
      "topics": [
        "fastlm"
      ]
    },
    {
      "page": "fit_ricker",
      "title": "Fit Ricker linear regression",
      "topics": [
        "fit_ricker"
      ]
    },
    {
      "page": "generate_env_ts",
      "title": "Create an environmental time series.",
      "topics": [
        "generate_env_ts"
      ]
    },
    {
      "page": "generate_straying_matrix",
      "title": "Generate a matrix of straying proportions within a metapopulation",
      "topics": [
        "generate_straying_matrix"
      ]
    },
    {
      "page": "get_conserv_plans_mv",
      "title": "Run simulation for conservation schemes",
      "topics": [
        "get_conserv_plans_mv"
      ]
    },
    {
      "page": "get_efficient_frontier",
      "title": "Get the efficient frontier from mean and variance values",
      "topics": [
        "get_efficient_frontier"
      ]
    },
    {
      "page": "get_port_vals",
      "title": "Get portfolio mean and variance values",
      "topics": [
        "get_port_vals"
      ]
    },
    {
      "page": "get_quantile_contour",
      "title": "Get quantile contour",
      "topics": [
        "get_quantile_contour"
      ]
    },
    {
      "page": "gg_color_hue",
      "title": "ggplot2-like colour scale in HCL space",
      "topics": [
        "gg_color_hue"
      ]
    },
    {
      "page": "impl_error",
      "title": "Add implementation error",
      "topics": [
        "impl_error"
      ]
    },
    {
      "page": "is_element",
      "title": "Check if x is an element of y.",
      "topics": [
        "is_element"
      ]
    },
    {
      "page": "meta_sim",
      "title": "Run a single metapopulation simulation.",
      "topics": [
        "meta_sim"
      ]
    },
    {
      "page": "metafolio",
      "title": "metafolio: An R package to simulate metapopulations for portfolio optimization",
      "topics": [
        "metafolio-package",
        "metafolio"
      ]
    },
    {
      "page": "metasim_base",
      "title": "Base-level metapopulation simulation function",
      "topics": [
        "metasim_base"
      ]
    },
    {
      "page": "monte_carlo_portfolios",
      "title": "Monte Carlo asset weights into portfolios",
      "topics": [
        "monte_carlo_portfolios"
      ]
    },
    {
      "page": "my.axis",
      "title": "Add a pretty axis",
      "topics": [
        "my.axis"
      ]
    },
    {
      "page": "optim_thermal",
      "title": "Optimize to find optimal max productivity Ricker a",
      "topics": [
        "optim_thermal"
      ]
    },
    {
      "page": "plot_cons_plans",
      "title": "Plot conservation plans in mean-variance space",
      "topics": [
        "plot_cons_plans"
      ]
    },
    {
      "page": "plot_correlation_between_returns",
      "title": "Plot correlation of returns (i.e. metapopulation abundance) across stocks.",
      "topics": [
        "plot_correlation_between_returns"
      ]
    },
    {
      "page": "plot_efficient_portfolios",
      "title": "Basic plot of efficient portfolio and asset contributions",
      "topics": [
        "plot_efficient_portfolios"
      ]
    },
    {
      "page": "plot_panel_lines",
      "title": "Standard matrix plot of values by stream for one panel:",
      "topics": [
        "plot_panel_lines"
      ]
    },
    {
      "page": "plot_rickers",
      "title": "Plot sample Ricker curves for each stock",
      "topics": [
        "plot_rickers"
      ]
    },
    {
      "page": "plot_sim_ts",
      "title": "Plot various time series from a simulation run",
      "topics": [
        "plot_sim_ts"
      ]
    },
    {
      "page": "plot_sp_A_ts",
      "title": "Plot sample time series from a portfolio simulation",
      "topics": [
        "plot_sp_A_ts"
      ]
    },
    {
      "page": "ricker",
      "title": "A simple Ricker model",
      "topics": [
        "ricker"
      ]
    },
    {
      "page": "ricker_escapement",
      "title": "Assign a salmon escapement target based on a Ricker curve",
      "topics": [
        "ricker_escapement"
      ]
    },
    {
      "page": "ricker_v_t",
      "title": "Ricker stock-recruit function with specified error",
      "topics": [
        "ricker_v_t"
      ]
    },
    {
      "page": "run_cons_plans",
      "title": "Run conservation plans and return the portfolio mean and variance values",
      "topics": [
        "run_cons_plans"
      ]
    },
    {
      "page": "thermal_area",
      "title": "Return desired squared deviation between desired area and actual area under a curve",
      "topics": [
        "thermal_area"
      ]
    },
    {
      "page": "thermal_curve_a",
      "title": "Create thermal tolerance curves.",
      "topics": [
        "thermal_curve_a"
      ]
    },
    {
      "page": "thermal_integration",
      "title": "Integrate thermal tolerance curves to get maximum Ricker a values",
      "topics": [
        "thermal_integration"
      ]
    },
    {
      "page": "VaR",
      "title": "Value at Risk",
      "topics": [
        "VaR"
      ]
    }
  ],
  "_readme": "https://github.com/seananderson/metafolio/raw/HEAD/README.md",
  "_rundeps": [
    "colorspace",
    "MASS",
    "plyr",
    "Rcpp",
    "RcppArmadillo"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "metafolio.Rnw",
      "filename": "metafolio.pdf",
      "title": "An introduction to the metafolio R package",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2013-11-02 22:07:29",
      "modified": "2014-07-08 23:57:44",
      "commits": 11
    }
  ],
  "_score": 4.963787827345556,
  "_indexed": true,
  "_nocasepkg": "metafolio",
  "_universes": [
    "seananderson"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-18T06:36:13.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "7b56e4308713f774f4f1da414d9e00a4c0587ff1d989f40b6a8e8b53c1923c4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-18T06:36:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "770197f06213a1886864bedd8e0b4ef79112c1b9faf403fa0a0a54fdd3148e88",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-18T06:35:58.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "771388f162348d021aa7e4c18bf375d4280620dab350aa6dc2d16b5018db1c6c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-05-18T06:36:06.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "128a2f43e2ff843f01eb9a2fc0d3b496788869840a7d765485a0c72a47b50804",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-18T06:36:19.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "baf03a862275039bb2f79d460b305bf1b1837be9ab983cbc1cbb0cbff64ea3f4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-18T06:39:52.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "81c42a7dafa1898b4cc698e756678d55a01eca292d4153b239c4fc75356a3fe9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-18T06:36:14.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "582ad396731c1a66b3b36881e8bf91b2e2f1a732559cad97cf8fd66f83cb7899",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-05-18T06:38:53.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "b804045b905e04e3575c6a94c522ca5a0d728316ff1506f7265f639cd6e411a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-18T06:35:37.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "bb31e45272c47dd86d1ecaae6bfd3692d35338008cb3d088397c5f64b8d3a3b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-18T06:35:42.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "5db81490d8de70d3e7d0c5e88e387ef59154919e122bdbdc6f14ae5a902f6e7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-05-18T06:35:36.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "3b6d2f4caca08b597e9f26d85a39d55786bfe0425e4c0c8efa40df5818d467d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-02T16:41:18.000Z",
      "arch": "emscripten",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "2097637254c7126060c83a4d8dbf7d4d6b709940cd5a9b87e4720e97567a57b8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/26017384997"
    }
  ]
}