{
  "_id": "6a49c7d31f917fbb72a20d7e",
  "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-06-17 10:54:43 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/8b441ab5ef8a3c6b2780074337d9e4433a43d017556fa4e05908de17a81d94d0",
  "_filesize": 1063907,
  "_sha256": "8b441ab5ef8a3c6b2780074337d9e4433a43d017556fa4e05908de17a81d94d0",
  "_expires": "2026-10-13T02:56:17.000Z",
  "_created": "2026-06-17T10:54:43.000Z",
  "_published": "2026-07-05T02:56:19.596Z",
  "_jobs": [
    {
      "job": 85187353663,
      "time": 175,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7693333406"
    },
    {
      "job": 85187353630,
      "time": 145,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7693321793"
    },
    {
      "job": 85187353629,
      "time": 166,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693331028"
    },
    {
      "job": 85187353589,
      "time": 114,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693310948"
    },
    {
      "job": 85187353633,
      "time": 189,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7693324469"
    },
    {
      "job": 85187353590,
      "time": 259,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7693356367"
    },
    {
      "job": 85187353610,
      "time": 201,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693326910"
    },
    {
      "job": 85187353582,
      "time": 297,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693366751"
    },
    {
      "job": 85187353440,
      "time": 185,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693267224"
    },
    {
      "job": 85187353555,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693314127"
    },
    {
      "job": 85187353578,
      "time": 84,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7693300033"
    },
    {
      "job": 85187353605,
      "time": 140,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7693320977"
    },
    {
      "job": 85187353635,
      "time": 100,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7693305384"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938",
  "_status": "success",
  "_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": "noble",
  "_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": 376
  },
  "_downloads": {
    "count": 812,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/metafolio"
  },
  "_devurl": "https://github.com/seananderson/metafolio",
  "_searchresults": 97,
  "_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.986771734266245,
  "_indexed": true,
  "_nocasepkg": "metafolio",
  "_universes": [
    "seananderson"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-17T10:57:44.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/c93e9ec19be8fb6efb84925307e5d80547679aa37c57193672e9a997e8c98684",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-17T10:57:17.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/f58ad2fbc5384fca5be8f5db048b370ec486ceebb7f21b540833fec140160c9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-17T10:57:38.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/66a3d5dc4d2ff9f2b010b108cf1b8887d73e246d0341f96cdf56812838ca6527",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-17T10:56:44.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/8cae3393491b0ace7aa445e791a1c33d9f03d97c5c245d088c1d2b6f08499ed1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-17T10:57:20.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/375bf1db603bb258c4def1650cb6e39d361355168ba4f1643aed53bf4757cf55",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-17T10:58:33.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/983b6fec6bbd7482a370b47cd1e856944db6b16e71ddf7b3a120bf9bb9ddface",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-17T10:57:10.000Z",
      "arch": "aarch64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/9f7453f3bd59c4db6d581bbc7470d9623af6e2d0ab5f48491b09502476dc0593",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-06-17T10:58:44.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/795fea64049c5bd8f07144d886a532892ca61a9e843b3f1521a47cdfdfd43c5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-17T10:57:00.000Z",
      "arch": "emscripten",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/e3ba32596f0539c22254651fa5204dad605f83a29cfcb4065e6289d53e08251b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-17T10:56:01.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/e02fb03726597d0d07aa47e9b7df58ef2d33d7126f3ccac807ef1a3bf9014567",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-17T10:56:24.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/419179075467ea92f4b2611b722eb04b4c77f5f2f665056b2091423457ba5d95",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-06-17T10:56:04.000Z",
      "arch": "x86_64",
      "commit": "edafee56a0cbf4eb6375a57123becbdef967a055",
      "fileid": "https://r2.ropensci.org/5cc8b58cd1837a12795c162f7983d0e5ff2cd08e2858d498e7f18884dfc08e11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/seananderson/actions/runs/27683731938"
    }
  ]
}