{
  "_id": "6a268a2e24555f66ed51a8ff",
  "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",
  "RoxygenNote": "7.1.1",
  "URL": "https://github.com/joaomacalos/sfcr",
  "BugReports": "https://github.com/joaomacalos/sfcr/issues",
  "VignetteBuilder": "knitr",
  "RdMacros": "Rdpack",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-08 09:20:12 UTC",
    "User": "root"
  },
  "Author": "Joao Macalos [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-6050-6394>)",
  "Maintainer": "Joao Macalos <joaomacalos@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-10-09 20:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/sfcr",
  "RemoteRef": "HEAD",
  "RemoteSha": "35715eff410f9394f3ff451ba89232f59af4ce75",
  "MD5sum": "bd779694442fee5a4cbdb2f949a68dd2",
  "_user": "cran",
  "_type": "src",
  "_file": "sfcr_0.2.3.tar.gz",
  "_fileid": "bb46b185dd45d923ecb9872da5e4d29d44696b7a8d6e38ee22bf39d21eb4a90d",
  "_filesize": 507832,
  "_sha256": "bb46b185dd45d923ecb9872da5e4d29d44696b7a8d6e38ee22bf39d21eb4a90d",
  "_created": "2026-06-08T09:20:12.000Z",
  "_published": "2026-06-08T09:23:58.355Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80061507607,
      "time": 162,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7476204775"
    },
    {
      "job": 80061507563,
      "time": 160,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7476203514"
    },
    {
      "job": 80061507537,
      "time": 158,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7476203835"
    },
    {
      "job": 80061507527,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7476206275"
    },
    {
      "job": 80060652832,
      "time": 286,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7476140563"
    },
    {
      "job": 80061507529,
      "time": 157,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7476201793"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27127716569",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/sfcr",
  "_commit": {
    "id": "35715eff410f9394f3ff451ba89232f59af4ce75",
    "author": "Joao Macalos <joaomacalos@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.3\n",
    "time": 1760042402
  },
  "_maintainer": {
    "name": "Joao Macalos",
    "email": "joaomacalos@gmail.com",
    "login": "joaomacalos",
    "description": "",
    "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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.3",
      "date": "2025-10-09"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "joaomacalos",
      "count": 4,
      "uuid": 40238878
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 231,
    "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.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": false,
  "_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/cran/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": "2021-01-08 08:30:06",
      "modified": "2025-10-09 20:40:02",
      "commits": 3
    }
  ],
  "_score": 3.322219294733919,
  "_indexed": false,
  "_nocasepkg": "sfcr",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://joaomacalos.r-universe.dev/sfcr",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-06-08T09:22:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "35715eff410f9394f3ff451ba89232f59af4ce75",
      "fileid": "94d85884a52d3ae8decc2664b9860ae022db6f2660b73b30da2f44a6f15b18dc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27127716569"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-06-08T09:22:46.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "35715eff410f9394f3ff451ba89232f59af4ce75",
      "fileid": "58aecb041b00120bbf3066b52c29f44cf08c6dfb99ba6e21a586ccb049ee5216",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27127716569"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-06-08T09:22:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "35715eff410f9394f3ff451ba89232f59af4ce75",
      "fileid": "df5c01616444b084957f52f1c7cd95be95d204d78d6ea23a3bf2f2e9d354963c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27127716569"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.3",
      "date": "2026-06-08T09:22:55.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "35715eff410f9394f3ff451ba89232f59af4ce75",
      "fileid": "0f412b36d67c23246a1689920df18930dc2e2bfb2d46cb3003b8947e6f56a1ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27127716569"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.3",
      "date": "2026-06-08T09:23:15.000Z",
      "arch": "emscripten",
      "commit": "35715eff410f9394f3ff451ba89232f59af4ce75",
      "fileid": "1909abb203c2ef9c6c214618b6a9f881f5f2fd33be0285bf62ae16ece933d72c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27127716569"
    }
  ]
}