{
  "_id": "6ad092cdcf31981cbb6ef039",
  "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-10-15 08:01:39 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>",
  "_user": "seananderson",
  "_type": "src",
  "_file": "metafolio_0.1.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/4521358382001fe4d7570e718017eacf0f96ea62c799b24d0058c383d8ae73f7",
  "_filesize": 1065369,
  "_sha256": "4521358382001fe4d7570e718017eacf0f96ea62c799b24d0058c383d8ae73f7",
  "_expires": "2027-01-23T08:46:02.000Z",
  "_created": "2026-10-15T08:01:39.000Z",
  "_published": "2026-10-15T08:46:05.747Z",
  "_buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116314862639,
      "time": 90,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11956384588"
    },
    {
      "job": 116314862814,
      "time": 128,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11956797369"
    },
    {
      "job": 116314862826,
      "time": 94,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11956911965"
    },
    {
      "job": 116314862747,
      "time": 120,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957396326"
    },
    {
      "job": 116314862629,
      "time": 131,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11959780213"
    },
    {
      "job": 116314862607,
      "time": 367,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11956929206"
    },
    {
      "job": 116314862654,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11959461051"
    },
    {
      "job": 116314862687,
      "time": 287,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957064082"
    },
    {
      "job": 116313509130,
      "time": 209,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957510574"
    },
    {
      "job": 116314862737,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11957101851"
    },
    {
      "job": 116314862641,
      "time": 336,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11957815107"
    },
    {
      "job": 116314862803,
      "time": 118,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11956264581"
    },
    {
      "job": 116314862662,
      "time": 120,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11957321568"
    },
    {
      "job": 116314862682,
      "time": 345,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957600396"
    },
    {
      "job": 116314862707,
      "time": 111,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957306411"
    }
  ],
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 381
  },
  "_downloads": {
    "count": 509,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/metafolio"
  },
  "_devurl": "https://github.com/seananderson/metafolio",
  "_searchresults": 94,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/metafolio.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "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.973127853599699,
  "_indexed": true,
  "_nocasepkg": "metafolio",
  "_universes": [
    "seananderson"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-15T08:03:28.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/4f295db634bf2209a3069f23344b9a2135f8666a7d17d1ae07629d63bf17b699",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-15T08:03:53.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/9d598e879544291361d03aa5dc4e420090cf0f26af7853d8210c9a3f663ada4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-15T08:03:23.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/88992db910b7d608b18e44065b31083023587e56df4717b68b1c93c39f51b345",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-15T08:03:44.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/16f7360fe8f80e5e90a800a10234deaf0997ee1f32caaeb2df8cd81cbd1b05ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-15T08:45:10.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/0b761ef652de8ef74a6b6b8642408a87f4b1d95a3859e30b806b22b0cc7e8da7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-15T08:13:56.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/fd9466a7ee002f4efe0bf2974dc107cf16e6e40cc8b7ab4758bf162299b863d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-15T08:43:57.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/ef044f0d6712603538a5ec5bc98edb1131bfb3833e753f74e593e08af846067f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-15T08:14:04.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/b93e5f056a1398f8d137ac269b9c76ddbeb7bba0f7ae8f5834de599bc169dc00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-10-15T08:04:23.000Z",
      "arch": "emscripten",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/6575603df8ef2de786dbf880f2777200dfc6ff905df58ef4411706fc7f62ae5c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-15T08:06:41.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/da25b2686f0893fff0f66a9fa79e0ab47c2410db67664542a72e67373a5554f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-15T08:02:59.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/05e56b6a70e968aa48c652a46c8ad81a180deb1b2d517ca1ed0c41863240e0fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-15T08:03:06.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/d8f5b37a95bdec8f125a868938c211940cd6d36dc1dbbd4699e04c7ee25ae387",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-15T08:06:46.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/5991cd2bd1e1d2f69fa892c7dbea374d2fd397a9a70915694922cceb76b89c73",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-15T08:03:14.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/1f6853a32d161729a34200ee44663846435d8e97dfe0a8eeaa0953f927b42e4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/38702352993"
    }
  ]
}