{
  "_id": "6a4df0aae691af43f13de705",
  "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-07-08 06:29:15 UTC",
    "User": "root"
  },
  "Author": "Joao Macalos [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-6050-6394>)",
  "Maintainer": "Joao Macalos <joaomacalos@gmail.com>",
  "_user": "joaomacalos",
  "_type": "src",
  "_file": "sfcr_0.2.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/099724e118fba7270dc04bfe1a6c46e2dd15ff928479269375c292e95256e279",
  "_filesize": 512890,
  "_sha256": "099724e118fba7270dc04bfe1a6c46e2dd15ff928479269375c292e95256e279",
  "_expires": "2026-10-16T06:39:36.000Z",
  "_created": "2026-07-08T06:29:15.000Z",
  "_published": "2026-07-08T06:39:38.804Z",
  "_jobs": [
    {
      "job": 85802508446,
      "time": 172,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8160050685"
    },
    {
      "job": 85802508430,
      "time": 184,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8160053009"
    },
    {
      "job": 85802508409,
      "time": 179,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160052605"
    },
    {
      "job": 85802508379,
      "time": 186,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160053998"
    },
    {
      "job": 85802508372,
      "time": 220,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8160050698"
    },
    {
      "job": 85802508373,
      "time": 565,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8160137235"
    },
    {
      "job": 85802508387,
      "time": 196,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160048237"
    },
    {
      "job": 85802508356,
      "time": 339,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160089135"
    },
    {
      "job": 85801872572,
      "time": 275,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8159999334"
    },
    {
      "job": 85802508353,
      "time": 175,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8160050014"
    },
    {
      "job": 85802508368,
      "time": 151,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8160043728"
    },
    {
      "job": 85802508386,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8160037335"
    },
    {
      "job": 85802508350,
      "time": 150,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160043387"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263",
  "_status": "success",
  "_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",
    "description": "",
    "uuid": 40238878,
    "orcid": "0000-0001-6050-6394"
  },
  "_distro": "resolute",
  "_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",
    "followers": 27
  },
  "_downloads": {
    "count": 522,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sfcr"
  },
  "_devurl": "https://github.com/joaomacalos/sfcr",
  "_searchresults": 42,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_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",
    "LICENSE",
    "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.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": "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.840733234611807,
  "_indexed": true,
  "_nocasepkg": "sfcr",
  "_universes": [
    "joaomacalos"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-07-08T06:32:08.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/1ddbb8d41acfadd61d88aa865e6de6af354c38260c2561f7e1b9a1269a9fd716",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-07-08T06:32:06.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/74304830724a853401e27e3f4650bc75146da11f99f1de4b022da06bb2ae95fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-07-08T06:32:15.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/af57e1c848903122b55749309051322bedf604f11e77bf984439dd001393881c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-07-08T06:32:08.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/097a195ec682053dccb654ca94c9935709690fc5dc4f884e10d973361da48195",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-07-08T06:31:56.000Z",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/9db313394cb77f76296cc20e22cae123d6b62e58144c2d3af9087c6862077c40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-07-08T06:35:30.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/cc37ad5839dd61cbea6952d5e8938b5aa925584a3a456910c1318d1ca5267138",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-07-08T06:31:51.000Z",
      "arch": "aarch64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/f8aa266d2c61b7f6ba4b5e37308e84bb40e61dfc2e693858b18c0afceb9bc9df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.3",
      "date": "2026-07-08T06:33:11.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/040b92ed7145c39032fc3307b2aaf0393c5f9ba9512471f1d8872df1a3f3b7e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.3",
      "date": "2026-07-08T06:32:27.000Z",
      "arch": "emscripten",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/2c08581d41b6228c813d05032b56d13e042641c2b697c890e21b6ee43a7f1fdd",
      "status": "success",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-07-08T06:30:47.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/e7ea482d52c9b9543d4ba43ae10e9601004b71b743b6686a0acf1d8dfe72f668",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-07-08T06:30:46.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/e1b0f36130e17c0f681817f9762c41a03256106f220036e731005d8b17e8ac35",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.3",
      "date": "2026-07-08T06:31:00.000Z",
      "arch": "x86_64",
      "commit": "c0c3e21b8bf51883e1f0e6a2467b67144872433a",
      "fileid": "https://r2.ropensci.org/4faec89368124426c2c10422f49759d6fbda76bc9163cc5136856b4849abd90b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joaomacalos/actions/runs/28922248263"
    }
  ]
}