{
  "_id": "6a1056d4acfb0bcc41ca2d3e",
  "Package": "sfcr",
  "Title": "Simulate Stock-Flow Consistent Models",
  "Version": "0.2.3",
  "Authors@R": "person(given = \"Joao\",\nfamily = \"Macalos\",\nrole = c(\"aut\", \"cre\"),\nemail = \"joaomacalos@gmail.com\",\ncomment = c(ORCID = \"https://orcid.org/0000-0001-6050-6394\"))",
  "Description": "Routines to write, simulate, and validate stock-flow\nconsistent (SFC) models. The accounting structure of SFC models\nare described in Godley and Lavoie (2007,\nISBN:978-1-137-08599-3). The algorithms implemented to solve\nthe models (Gauss-Seidel and Broyden) are described in Kinsella\nand O'Shea (2010) <doi:10.2139/ssrn.1729205> and Peressini and\nSullivan (1988, ISBN:0-387-96614-5).",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.1.1",
  "URL": "https://github.com/joaomacalos/sfcr",
  "BugReports": "https://github.com/joaomacalos/sfcr/issues",
  "VignetteBuilder": "knitr",
  "RdMacros": "Rdpack",
  "Config/pak/sysreqs": "cmake libfontconfig1-dev libfreetype6-dev\nlibfribidi-dev libglpk-dev make libharfbuzz-dev libicu-dev\nlibpng-dev libuv1-dev libxml2-dev",
  "Repository": "https://joaomacalos.r-universe.dev",
  "Date/Publication": "2025-10-09 21:08:36 UTC",
  "RemoteUrl": "https://github.com/joaomacalos/sfcr",
  "RemoteRef": "HEAD",
  "RemoteSha": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-09 07:32:26 UTC",
    "User": "root"
  },
  "Author": "Joao Macalos [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-6050-6394>)",
  "Maintainer": "Joao Macalos <joaomacalos@gmail.com>",
  "MD5sum": "63b8fff3f6799036696d36e752aa76cc",
  "_user": "joaomacalos",
  "_type": "src",
  "_file": "sfcr_0.2.3.tar.gz",
  "_fileid": "d882ebaa852b7af71f3f8bf9ae2efa71cf860fdaa266d874c356734c92e5f08a",
  "_filesize": 510256,
  "_sha256": "d882ebaa852b7af71f3f8bf9ae2efa71cf860fdaa266d874c356734c92e5f08a",
  "_created": "2026-05-09T07:32:26.000Z",
  "_published": "2026-05-22T13:15:00.906Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77386763809,
      "time": 173,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894014479"
    },
    {
      "job": 77386763880,
      "time": 179,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894015677"
    },
    {
      "job": 77386764341,
      "time": 162,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894013287"
    },
    {
      "job": 77386763911,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894014946"
    },
    {
      "job": 77386763918,
      "time": 209,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894015030"
    },
    {
      "job": 77386763956,
      "time": 458,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894039649"
    },
    {
      "job": 77386763400,
      "time": 157,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894009691"
    },
    {
      "job": 77386763854,
      "time": 276,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894020484"
    },
    {
      "job": 77386762413,
      "time": 243,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6893996202"
    },
    {
      "job": 77386762676,
      "time": 149,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7161389540"
    },
    {
      "job": 77386763390,
      "time": 146,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6894011417"
    },
    {
      "job": 77386763941,
      "time": 141,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6894011202"
    },
    {
      "job": 77386763682,
      "time": 121,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6894009169"
    }
  ],
  "_buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/joaomacalos/sfcr",
  "_commit": {
    "id": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
    "author": "joaomacalos <joaomacalos@gmail.com>",
    "committer": "joaomacalos <joaomacalos@gmail.com>",
    "message": "cran submission\n",
    "time": 1760044116
  },
  "_maintainer": {
    "name": "Joao Macalos",
    "email": "joaomacalos@gmail.com",
    "login": "joaomacalos",
    "uuid": 40238878,
    "orcid": "0000-0001-6050-6394"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.2",
      "role": "Imports"
    },
    {
      "package": "expm",
      "version": ">= 0.999.5",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "version": ">= 0.5.0",
      "role": "Imports"
    },
    {
      "package": "igraph",
      "version": ">= 1.2.6",
      "role": "Imports"
    },
    {
      "package": "kableExtra",
      "version": ">= 1.3.1",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 1.5",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 0.3.4",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "version": ">= 2.1",
      "role": "Imports"
    },
    {
      "package": "rootSolve",
      "version": ">= 1.8.2.1",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.7",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.3",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.1.2",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.4.0",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "vctrs",
      "version": ">= 0.3.5",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.5",
      "role": "Imports"
    },
    {
      "package": "ggraph",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "grDevices",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.3.2",
      "role": "Suggests"
    },
    {
      "package": "tidygraph",
      "role": "Suggests"
    },
    {
      "package": "tidyverse",
      "role": "Suggests"
    },
    {
      "package": "networkD3",
      "role": "Suggests"
    }
  ],
  "_owner": "joaomacalos",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.2.2",
      "date": "2025-10-09"
    },
    {
      "name": "v0.2.3",
      "date": "2025-10-09"
    }
  ],
  "_stars": 33,
  "_contributors": [
    {
      "user": "joaomacalos",
      "count": 114,
      "uuid": 40238878
    },
    {
      "user": "gpetrini",
      "count": 2,
      "uuid": 34845115
    }
  ],
  "_userbio": {
    "uuid": 40238878,
    "type": "user",
    "name": "joaomacalos"
  },
  "_downloads": {
    "count": 273,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sfcr"
  },
  "_devurl": "https://github.com/joaomacalos/sfcr",
  "_searchresults": 44,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sfcr.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/joaomacalos/sfcr",
  "_realowner": "joaomacalos",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2021-01-08"
    },
    {
      "version": "0.2.0",
      "date": "2021-10-05"
    },
    {
      "version": "0.2.1",
      "date": "2021-10-11"
    },
    {
      "version": "0.2.3",
      "date": "2025-10-09"
    }
  ],
  "_exports": [
    "%>%",
    "sfcr_baseline",
    "sfcr_dag_blocks",
    "sfcr_dag_blocks_plot",
    "sfcr_dag_cycles",
    "sfcr_dag_cycles_plot",
    "sfcr_expand",
    "sfcr_get_blocks",
    "sfcr_get_matrix",
    "sfcr_matrix",
    "sfcr_matrix_display",
    "sfcr_multis",
    "sfcr_portfolio",
    "sfcr_random",
    "sfcr_sankey",
    "sfcr_scenario",
    "sfcr_set",
    "sfcr_set_index",
    "sfcr_shock",
    "sfcr_validate"
  ],
  "_help": [
    {
      "page": "sfcr_baseline",
      "title": "Simulate the baseline scenario of a stock-flow consistent model",
      "topics": [
        "sfcr_baseline"
      ]
    },
    {
      "page": "sfcr_dag_blocks",
      "title": "Create a 'tbl_graph' object blocks and cycles information",
      "topics": [
        "sfcr_dag_blocks"
      ]
    },
    {
      "page": "sfcr_dag_blocks_plot",
      "title": "Plot the DAG with blocks and cycles information",
      "topics": [
        "sfcr_dag_blocks_plot"
      ]
    },
    {
      "page": "sfcr_dag_cycles",
      "title": "Create a 'tbl_graph' object with cycles information",
      "topics": [
        "sfcr_dag_cycles"
      ]
    },
    {
      "page": "sfcr_dag_cycles_plot",
      "title": "Plot the DAG with cycles information",
      "topics": [
        "sfcr_dag_cycles_plot"
      ]
    },
    {
      "page": "sfcr_expand",
      "title": "Expand variables to implement sensitivity analysis",
      "topics": [
        "sfcr_expand"
      ]
    },
    {
      "page": "sfcr_get_blocks",
      "title": "Get block structure of a 'sfcr_tbl' object",
      "topics": [
        "sfcr_get_blocks"
      ]
    },
    {
      "page": "sfcr_get_matrix",
      "title": "Get Matrix form of 'sfcr_tbl' object",
      "topics": [
        "sfcr_get_matrix"
      ]
    },
    {
      "page": "sfcr_matrix",
      "title": "Create balance-sheet or transactions-flow matrices",
      "topics": [
        "sfcr_matrix"
      ]
    },
    {
      "page": "sfcr_matrix_display",
      "title": "Print matrix to screen",
      "topics": [
        "sfcr_matrix_display"
      ]
    },
    {
      "page": "sfcr_multis",
      "title": "Simulate multiple SFC models at the same time",
      "topics": [
        "sfcr_multis"
      ]
    },
    {
      "page": "sfcr_portfolio",
      "title": "Find a valid matrix of portfolio parameters",
      "topics": [
        "sfcr_portfolio"
      ]
    },
    {
      "page": "sfcr_random",
      "title": "Generate random sequences inside 'sfcr_set()'",
      "topics": [
        "sfcr_random"
      ]
    },
    {
      "page": "sfcr_sankey",
      "title": "Plot Sankey's diagram representation of transactions-flow matrix",
      "topics": [
        "sfcr_sankey"
      ]
    },
    {
      "page": "sfcr_scenario",
      "title": "Add scenarios to a 'sfcr' model.",
      "topics": [
        "sfcr_scenario"
      ]
    },
    {
      "page": "sfcr_set",
      "title": "Define the formulas of the model",
      "topics": [
        "sfcr_set"
      ]
    },
    {
      "page": "sfcr_set_index",
      "title": "Get names of endogenous vars and their index",
      "topics": [
        "sfcr_set_index"
      ]
    },
    {
      "page": "sfcr_shock",
      "title": "Create shock(s) to add to a 'sfcr_scenario()'.",
      "topics": [
        "sfcr_shock"
      ]
    },
    {
      "page": "sfcr_validate",
      "title": "Validate a transactions-flow or balance-sheet matrix",
      "topics": [
        "sfcr_validate"
      ]
    }
  ],
  "_readme": "https://github.com/joaomacalos/sfcr/raw/HEAD/README.md",
  "_rundeps": [
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "cpp11",
    "digest",
    "dplyr",
    "evaluate",
    "expm",
    "farver",
    "fastmap",
    "fontawesome",
    "forcats",
    "fs",
    "generics",
    "glue",
    "highr",
    "htmltools",
    "igraph",
    "jquerylib",
    "jsonlite",
    "kableExtra",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "memoise",
    "mime",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "Rdpack",
    "rlang",
    "rmarkdown",
    "rootSolve",
    "rstudioapi",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "svglite",
    "systemfonts",
    "textshaping",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "yaml"
  ],
  "_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": "sfcr_multis.Rmd",
      "filename": "sfcr_multis.html",
      "title": "sfcr_multis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Many baseline models based on a expanded set of external equations",
        "2. Many scenarios based on a expanded set of shocks",
        "3. Many scenarios based on the same shock applied to many baseline models",
        "Plotting the results"
      ],
      "created": "2020-12-14 17:55:31",
      "modified": "2021-10-08 18:12:58",
      "commits": 2
    }
  ],
  "_score": 5.860936620700094,
  "_indexed": true,
  "_nocasepkg": "sfcr",
  "_universes": [
    "joaomacalos"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-09T07:35:13.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "ab0001ae16349cdf62f5c69aa2bdb18551336aa54dd6867d8a50f1b4c5b0c9d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-09T07:35:19.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "1aec8c974efdcea5e27fc0181c98aedd1161bdfb9f3aa44f4ffeae9c03df10a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-09T07:35:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "d23dfe3b7bad1071f07131e1e37c2b4b4eba93f19c5ed0226e91a40f0d8b7995",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-05-09T07:35:13.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "2a6db178c459963f8edd2d9d80ee6629ea2f0812df081436707dc7afe6c90a9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-05-09T07:35:13.000Z",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "ab0e3170164e5e18f36aa801fb1b87193fdec0b941bf0dea99848a8db1fbb2e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-05-09T07:38:09.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "a9af78d7b60549c628285fc77387341c0b0b20ad1e3e526f886df3488cf32572",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-05-09T07:34:33.000Z",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "de45a3c747f467f431812672361e12d76fa6467fc2985a5a583512db86cd7b48",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-05-09T07:35:38.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "7a5b6e8d306e4be8919067ce80bca2ee8f135e44fe00f106555c7a44d87acebb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-05-09T07:34:07.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "fe5555e281027a94472546d97a8e3592ff9bd49109dcd8c6933c3f3becd4c3af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-05-09T07:34:13.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "f284527e671aef4349bdf7fd6f18cc24921e99a7cd14221923d51adcc4fce117",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-05-09T07:33:53.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "2c4a6a818f8d20898a155122286880488944df33cafae5bb9e9826dc5e02450c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.3",
      "date": "2026-05-22T13:14:34.000Z",
      "arch": "emscripten",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "f2e82483466b9ca7d5b7dded8cc12447e190bc813a7ab97eee5b66ad225caa3c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/25595342318"
    }
  ]
}