{
  "_id": "6a2951fc732311cd875afdfc",
  "Package": "ecospgr",
  "Title": "Shared Loader Utilities for ecospg",
  "Version": "0.3.0",
  "Authors@R": "person(\"Lars\", \"Dalby\", email = \"lars@ecos.au.dk\", role = c(\"aut\", \"cre\"))",
  "Description": "Extracts duplicated R code from ecospg data loaders into a\nreusable package. Provides database connection, catalog\nregistration, partitioned table management, staging/ingest, S3\nupload, and CLI argument parsing utilities.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libuv1-dev libssl-dev libpq-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://ldalby.r-universe.dev",
  "Date/Publication": "2026-06-10 10:55:00 UTC",
  "RemoteUrl": "https://gitlab.au.dk/ecos/tools/r-pkgs/ecospgr",
  "RemoteRef": "HEAD",
  "RemoteSha": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-10 11:58:02 UTC",
    "User": "root"
  },
  "Author": "Lars Dalby [aut, cre]",
  "Maintainer": "Lars Dalby <lars@ecos.au.dk>",
  "MD5sum": "a04aa6ac030105b127d1a7a602a66c53",
  "_user": "ldalby",
  "_type": "src",
  "_file": "ecospgr_0.3.0.tar.gz",
  "_fileid": "23648447ca7f13909fe86f8ad69ece61893ff90bb5f9ad256476999d2b94484a",
  "_filesize": 130857,
  "_sha256": "23648447ca7f13909fe86f8ad69ece61893ff90bb5f9ad256476999d2b94484a",
  "_created": "2026-06-10T11:58:02.000Z",
  "_published": "2026-06-10T12:00:59.978Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80552465857,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7535008298"
    },
    {
      "job": 80552465829,
      "time": 121,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7535008255"
    },
    {
      "job": 80552465905,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7535008287"
    },
    {
      "job": 80552465794,
      "time": 76,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7534998798"
    },
    {
      "job": 80551904067,
      "time": 187,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7534964549"
    },
    {
      "job": 80552465791,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7535004661"
    },
    {
      "job": 80552465838,
      "time": 70,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7534990214"
    },
    {
      "job": 80552465887,
      "time": 69,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7534989567"
    },
    {
      "job": 80552465837,
      "time": 79,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7534993192"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://gitlab.au.dk/ecos/tools/r-pkgs/ecospgr",
  "_commit": {
    "id": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
    "author": "Lars Dalby <lars@bios.au.dk>",
    "committer": "Lars Dalby <lars@bios.au.dk>",
    "message": "Merge branch 'dfd-auth-helpers' into 'main'\n\nAdd Datafordeler authentication helpers\n\nSee merge request ecos/tools/r-pkgs/ecospgr!1",
    "time": 1781088900
  },
  "_maintainer": {
    "name": "Lars Dalby",
    "email": "lars@ecos.au.dk",
    "login": "ldalby",
    "twitter": "@lars_dalby",
    "description": "Data scientist, ecologist, PhD.\n\n",
    "uuid": 2366579
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "DBI",
      "role": "Imports"
    },
    {
      "package": "RPostgres",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "gitlab-r-pkgs",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 8
    },
    {
      "week": "2026-18",
      "n": 2
    },
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [],
  "_userbio": {
    "uuid": 2366579,
    "type": "user",
    "name": "Lars Dalby",
    "description": "Data scientist, ecologist, PhD.\r\n\r\n"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ecospgr"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ecospgr.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "epg_build_source_meta",
    "epg_collect_source_meta_overrides",
    "epg_create_partition",
    "epg_detect_xsd_for_gml",
    "epg_dfd_auth_params",
    "epg_dfd_auth_qs",
    "epg_ensure_dataset",
    "epg_ensure_topic",
    "epg_finalize_version",
    "epg_insert_normalized",
    "epg_parse_arg",
    "epg_parse_json_arg",
    "epg_parse_json_payload",
    "epg_persist_source_meta",
    "epg_pg_connect",
    "epg_read_json_file",
    "epg_register_version",
    "epg_resolve_s3_config",
    "epg_run_pipeline",
    "epg_sanitize_name",
    "epg_set_raw_file_url",
    "epg_upload_raw_files",
    "epg_write_staging"
  ],
  "_help": [
    {
      "page": "epg_build_source_meta",
      "title": "Build base source metadata",
      "topics": [
        "epg_build_source_meta"
      ]
    },
    {
      "page": "epg_collect_source_meta_overrides",
      "title": "Collect source metadata overrides from file and/or inline JSON",
      "topics": [
        "epg_collect_source_meta_overrides"
      ]
    },
    {
      "page": "epg_create_partition",
      "title": "Create a partition table and indexes for a dataset version",
      "topics": [
        "epg_create_partition"
      ]
    },
    {
      "page": "epg_detect_xsd_for_gml",
      "title": "Detect a companion XSD file for a GML file",
      "topics": [
        "epg_detect_xsd_for_gml"
      ]
    },
    {
      "page": "epg_dfd_auth_params",
      "title": "Datafordeler authentication query parameters",
      "topics": [
        "epg_dfd_auth_params"
      ]
    },
    {
      "page": "epg_dfd_auth_qs",
      "title": "Datafordeler authentication query string",
      "topics": [
        "epg_dfd_auth_qs"
      ]
    },
    {
      "page": "epg_ensure_dataset",
      "title": "Ensure a dataset row exists in meta.dataset",
      "topics": [
        "epg_ensure_dataset"
      ]
    },
    {
      "page": "epg_ensure_topic",
      "title": "Ensure a topic row exists in meta.topic",
      "topics": [
        "epg_ensure_topic"
      ]
    },
    {
      "page": "epg_finalize_version",
      "title": "Finalize a dataset version: mark latest and drop staging",
      "topics": [
        "epg_finalize_version"
      ]
    },
    {
      "page": "epg_insert_normalized",
      "title": "Insert normalized geometries from staging into a vector partition",
      "topics": [
        "epg_insert_normalized"
      ]
    },
    {
      "page": "epg_parse_arg",
      "title": "Parse a command-line flag argument",
      "topics": [
        "epg_parse_arg"
      ]
    },
    {
      "page": "epg_parse_json_arg",
      "title": "Parse a JSON value from a string or @file reference",
      "topics": [
        "epg_parse_json_arg"
      ]
    },
    {
      "page": "epg_parse_json_payload",
      "title": "Parse a JSON string",
      "topics": [
        "epg_parse_json_payload"
      ]
    },
    {
      "page": "epg_persist_source_meta",
      "title": "Persist source metadata on a dataset version",
      "topics": [
        "epg_persist_source_meta"
      ]
    },
    {
      "page": "epg_pg_connect",
      "title": "Connect to PostgreSQL using PG* environment variables",
      "topics": [
        "epg_pg_connect"
      ]
    },
    {
      "page": "epg_read_json_file",
      "title": "Read and parse a JSON file",
      "topics": [
        "epg_read_json_file"
      ]
    },
    {
      "page": "epg_register_version",
      "title": "Register a new dataset version",
      "topics": [
        "epg_register_version"
      ]
    },
    {
      "page": "epg_resolve_s3_config",
      "title": "Resolve S3-compatible object storage configuration from environment",
      "topics": [
        "epg_resolve_s3_config"
      ]
    },
    {
      "page": "epg_run_pipeline",
      "title": "Run the full ingest pipeline in a single transaction",
      "topics": [
        "epg_run_pipeline"
      ]
    },
    {
      "page": "epg_sanitize_name",
      "title": "Sanitize a string into a valid SQL/table name",
      "topics": [
        "epg_sanitize_name"
      ]
    },
    {
      "page": "epg_set_raw_file_url",
      "title": "Set the raw file URL on a dataset version",
      "topics": [
        "epg_set_raw_file_url"
      ]
    },
    {
      "page": "epg_upload_raw_files",
      "title": "Upload raw files to S3-compatible object storage",
      "topics": [
        "epg_upload_raw_files"
      ]
    },
    {
      "page": "epg_write_staging",
      "title": "Write an sf object to a staging table",
      "topics": [
        "epg_write_staging"
      ]
    }
  ],
  "_readme": "https://gitlab.au.dk/ecos/tools/r-pkgs/ecospgr/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "blob",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "e1071",
    "fs",
    "generics",
    "glue",
    "hms",
    "jsonlite",
    "KernSmooth",
    "lifecycle",
    "lubridate",
    "MASS",
    "pkgconfig",
    "proxy",
    "Rcpp",
    "rlang",
    "RPostgres",
    "s2",
    "sf",
    "timechange",
    "units",
    "vctrs",
    "withr",
    "wk"
  ],
  "_score": 2.1760912590556813,
  "_indexed": false,
  "_nocasepkg": "ecospgr",
  "_universes": [
    "ldalby"
  ],
  "_previous": "0.2.2",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-10T12:00:08.000Z",
      "distro": "noble",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "934cab7f0895ea08d8c6cfdc8c23d5ff92c351eaeab14964384f374cfa209476",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-10T12:00:08.000Z",
      "distro": "noble",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "934da7fe9c60691bbe3c2065c0e7c97d8ea25d07280f4a9063b44b79934d1a00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-10T12:00:09.000Z",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "cb3d967f30fa0a093723ce210496aa97a1d66b94617c30fbbcb40f5aad57542a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-10T11:59:44.000Z",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "4b50286bfb0332c3db542903f06d30cb4b64b3c69138abfba85fc146e556c5fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-06-10T12:00:08.000Z",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "4f9bb0b818c0293deb7d56fd718ff146e0e52beb63978cecf427a2dfe4bac1ba",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-10T11:59:12.000Z",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "1e4aa200658acab63ad59bcd102994febbccf363237bbdb3dac433839f2c1873",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-10T11:59:12.000Z",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "1c5f3ec7c9d472fe4690d2761f74a8a197bf045a20b055cec2e732ac6c5df6b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-10T11:59:21.000Z",
      "commit": "365a1accfdbbbbf36f87409d920fc5a8bf8be173",
      "fileid": "5f6f16bc093c77b287f7d31e323fb60d33310e09c7004123497e2b48e1857019",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ldalby/actions/runs/27274411616"
    }
  ]
}