{
  "_id": "6a1009e2acfb0bcc41c7f239",
  "Package": "llmflow",
  "Type": "Package",
  "Title": "Reasoning and Acting Workflow for Automated Data Analysis",
  "Version": "3.0.2",
  "Authors@R": "person(\"Zaoqu\", \"Liu\", \nemail = \"liuzaoqu@163.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-0452-742X\"))",
  "Description": "Provides a framework for integrating Large Language Models\n('LLMs') with R programming through workflow automation. Built\non the 'ReAct' (Reasoning and Acting) architecture, enables\nbi-directional communication between 'LLMs' and R environments.\nFeatures include automated code generation and execution,\nintelligent error handling with retry mechanisms, persistent\nsession management, structured JSON output validation, and\ncontext-aware conversation management.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "URL": "https://github.com/Zaoqu-Liu/llmflow",
  "BugReports": "https://github.com/Zaoqu-Liu/llmflow/issues",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libssl-dev libnode-dev",
  "Repository": "https://zaoqu-liu.r-universe.dev",
  "Date/Publication": "2026-01-22 19:11:23 UTC",
  "RemoteUrl": "https://github.com/Zaoqu-Liu/llmflow",
  "RemoteRef": "HEAD",
  "RemoteSha": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 07:44:09 UTC",
    "User": "root"
  },
  "Author": "Zaoqu Liu [aut, cre] (ORCID: <https://orcid.org/0000-0002-0452-742X>)",
  "Maintainer": "Zaoqu Liu <liuzaoqu@163.com>",
  "MD5sum": "51753c866884f2970f1bfb286ed4a289",
  "_user": "zaoqu-liu",
  "_type": "src",
  "_file": "llmflow_3.0.2.tar.gz",
  "_fileid": "737e8cf7ac7c7f384a72a1ed69a99000ffb7d98ed6002208b03db4d45fdd9cdd",
  "_filesize": 183163,
  "_sha256": "737e8cf7ac7c7f384a72a1ed69a99000ffb7d98ed6002208b03db4d45fdd9cdd",
  "_created": "2026-05-22T07:44:09.000Z",
  "_published": "2026-05-22T07:46:42.110Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77337757907,
      "time": 118,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7155414567"
    },
    {
      "job": 77337757904,
      "time": 101,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155409856"
    },
    {
      "job": 77337757909,
      "time": 73,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7155401134"
    },
    {
      "job": 77337757924,
      "time": 85,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155404967"
    },
    {
      "job": 77337353054,
      "time": 174,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155378456"
    },
    {
      "job": 77337757888,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155409725"
    },
    {
      "job": 77337757937,
      "time": 63,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7155398199"
    },
    {
      "job": 77337757954,
      "time": 64,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7155398433"
    },
    {
      "job": 77337757964,
      "time": 75,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7155401873"
    }
  ],
  "_buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/Zaoqu-Liu/llmflow",
  "_commit": {
    "id": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
    "author": "Zaoqu-Liu <liuzaoqu@163.com>",
    "committer": "Zaoqu-Liu <liuzaoqu@163.com>",
    "message": "Fix CRAN NOTE: replace .GlobalEnv with globalenv()\n",
    "time": 1769109083
  },
  "_maintainer": {
    "name": "Zaoqu Liu",
    "email": "liuzaoqu@163.com",
    "login": "zaoqu-liu",
    "orcid": "0000-0002-0452-742X",
    "description": "AI4S",
    "uuid": 68080738
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "callr",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "jsonvalidate",
      "role": "Imports"
    },
    {
      "package": "ellmer",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "zaoqu-liu",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "zaoqu-liu",
      "count": 7,
      "uuid": 68080738
    }
  ],
  "_userbio": {
    "uuid": 68080738,
    "type": "user",
    "name": "LIU Zaoqu",
    "description": "AI4S"
  },
  "_downloads": {
    "count": 151,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/llmflow"
  },
  "_devurl": "https://github.com/zaoqu-liu/llmflow",
  "_searchresults": 1,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/llmflow.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/zaoqu-liu/llmflow",
  "_realowner": "zaoqu-liu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "3.0.2",
      "date": "2026-01-31"
    }
  ],
  "_exports": [
    "AutoFlow",
    "extract_bash_code",
    "extract_chat_history",
    "extract_code",
    "extract_function_examples",
    "extract_javascript_code",
    "extract_json",
    "extract_python_code",
    "extract_r_code",
    "extract_sql_code",
    "package_extraction_prompt",
    "package_function_schema",
    "prompt_from_history",
    "react_r",
    "react_using_r",
    "response_as_json",
    "response_to_r",
    "retrieve_docs",
    "save_code_to_file"
  ],
  "_help": [
    {
      "page": "AutoFlow",
      "title": "AutoFlow - Automated R Analysis Workflow with LLM",
      "topics": [
        "AutoFlow"
      ]
    },
    {
      "page": "extract_bash_code",
      "title": "Extract Bash/Shell code from a string",
      "topics": [
        "extract_bash_code"
      ]
    },
    {
      "page": "extract_chat_history",
      "title": "Extract chat history from ellmer chat object",
      "topics": [
        "extract_chat_history"
      ]
    },
    {
      "page": "extract_code",
      "title": "Generic function to extract code of any specified language",
      "topics": [
        "extract_code"
      ]
    },
    {
      "page": "extract_function_examples",
      "title": "Extract Examples from a Package Function",
      "topics": [
        "extract_function_examples"
      ]
    },
    {
      "page": "extract_javascript_code",
      "title": "Extract JavaScript code from a string",
      "topics": [
        "extract_javascript_code"
      ]
    },
    {
      "page": "extract_json",
      "title": "Extract and parse JSONs from a string (LLM response)",
      "topics": [
        "extract_json"
      ]
    },
    {
      "page": "extract_python_code",
      "title": "Extract Python code from a string",
      "topics": [
        "extract_python_code"
      ]
    },
    {
      "page": "extract_r_code",
      "title": "Extract R code from a string",
      "topics": [
        "extract_r_code"
      ]
    },
    {
      "page": "extract_sql_code",
      "title": "Extract SQL code from a string",
      "topics": [
        "extract_sql_code"
      ]
    },
    {
      "page": "package_extraction_prompt",
      "title": "Generate Function Extraction Prompt for LLM Analysis",
      "topics": [
        "package_extraction_prompt"
      ]
    },
    {
      "page": "package_function_schema",
      "title": "Create JSON Schema for Package Function Validation",
      "topics": [
        "package_function_schema"
      ]
    },
    {
      "page": "prompt_from_history",
      "title": "Build prompt from chat history",
      "topics": [
        "prompt_from_history"
      ]
    },
    {
      "page": "react_r",
      "title": "Simplified interface - Enhanced react_r",
      "topics": [
        "react_r"
      ]
    },
    {
      "page": "react_using_r",
      "title": "ReAct (Reasoning and Acting) using R code execution - Optimized Version",
      "topics": [
        "react_using_r"
      ]
    },
    {
      "page": "response_as_json",
      "title": "Get JSON response from LLM with validation and retry",
      "topics": [
        "response_as_json"
      ]
    },
    {
      "page": "response_to_r",
      "title": "Response to R code generation and execution with session continuity",
      "topics": [
        "response_to_r"
      ]
    },
    {
      "page": "retrieve_docs",
      "title": "Retrieve and Format R Function Documentation for LLM Consumption",
      "topics": [
        "retrieve_docs"
      ]
    },
    {
      "page": "save_code_to_file",
      "title": "Save extracted code to file",
      "topics": [
        "save_code_to_file"
      ]
    }
  ],
  "_readme": "https://github.com/Zaoqu-Liu/llmflow/raw/HEAD/README.md",
  "_rundeps": [
    "callr",
    "cli",
    "curl",
    "glue",
    "jsonlite",
    "jsonvalidate",
    "processx",
    "ps",
    "R6",
    "Rcpp",
    "V8"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "llmflow",
  "_universes": [
    "zaoqu-liu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.2",
      "date": "2026-05-22T07:46:11.000Z",
      "distro": "noble",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "fcaf4e8104f751395cc62a1e289b288cc406be1baaa90194cdbea79943df4db9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.0.2",
      "date": "2026-05-22T07:45:57.000Z",
      "distro": "noble",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "d2533544173bda9a4164080779b34e9cfd4bec0a94c158d44ae07927ac61d1c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.2",
      "date": "2026-05-22T07:45:31.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "b711e1438356156383d3ee80923bd914c48c65aca9bbf1c46fc7417f3bc52508",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.0.2",
      "date": "2026-05-22T07:45:41.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "13e4031fa0e24d44cc7b3bc43ec329ea177c1ac8d3ad079266e75120569b21a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.2",
      "date": "2026-05-22T07:46:06.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "c8cb4b8808f718359442bbdb343fba88f555072f825bc58742b5e0ad99e09198",
      "status": "success",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.2",
      "date": "2026-05-22T07:45:13.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "28f03c79a5798609bd839456730d24da96af3194e93a23b687537ca817eb32c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.2",
      "date": "2026-05-22T07:45:14.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "ccb5e547bef1665ea64fe28175a722a85615c8a66f6a0768b7dee6c4ac591db0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.0.2",
      "date": "2026-05-22T07:45:24.000Z",
      "commit": "40b3351f56e94e80bbecfd3b4d687e70fc3a9228",
      "fileid": "df2fe73c99522614314c15c3ce3a9fd5b0efb81654d3f4a0aa4ca93f9e4bab8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/zaoqu-liu/actions/runs/26275085451"
    }
  ]
}