{
  "_id": "6a215a85cd65a98ecbd2eecc",
  "Package": "scriptloc",
  "Title": "Get the Location of the R Script that is Being Sourced/Executed",
  "Version": "1.0.0",
  "Authors@R": "person(given = \"Naren\",\nfamily = \"Chandran Sakthivel\",\nrole = c(\"aut\", \"cre\"),\nemail = \"narenschandran@gmail.com\",\ncomment = c(ORCID = \"https://orcid.org/0000-0001-7728-0985\"))",
  "Author": "Naren Chandran Sakthivel [aut, cre]\n(<https://orcid.org/0000-0001-7728-0985>)",
  "Maintainer": "Naren Chandran Sakthivel <narenschandran@gmail.com>",
  "Description": "Provides functions to retrieve the location of R scripts\nloaded through the source() function or run from the command\nline using the Rscript command. This functionality is analogous\nto the Bash shell's ${BASH_SOURCE[0]}. Users can first set the\nproject root's path relative to the script path and then all\nsubsequent paths relative to the root. This system ensures that\nall paths lead to the same location regardless of where any\nscript is executed/loaded from without resorting to the use of\nsetwd() at the top of the scripts.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 10:55:54 UTC",
    "User": "root"
  },
  "Repository": "https://narenschandran.r-universe.dev",
  "Date/Publication": "2023-08-17 16:34:46 UTC",
  "RemoteUrl": "https://github.com/cran/scriptloc",
  "RemoteRef": "HEAD",
  "RemoteSha": "92b3354615cc13d46f9d6599572c51daf5daee3e",
  "MD5sum": "258c75d9059dbbe71e6865aa5c15d738",
  "_user": "narenschandran",
  "_type": "src",
  "_file": "scriptloc_1.0.0.tar.gz",
  "_fileid": "6b45afcdc517093512ce7ca833d8740014e264c0bce39d4fb022df10beffe7ab",
  "_filesize": 91091,
  "_sha256": "6b45afcdc517093512ce7ca833d8740014e264c0bce39d4fb022df10beffe7ab",
  "_created": "2026-06-04T10:55:54.000Z",
  "_published": "2026-06-04T10:59:17.932Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79503814626,
      "time": 128,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7409672021"
    },
    {
      "job": 79503814632,
      "time": 103,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7409664997"
    },
    {
      "job": 79503814622,
      "time": 134,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7409668700"
    },
    {
      "job": 79503814670,
      "time": 169,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7409673547"
    },
    {
      "job": 79503384275,
      "time": 167,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7409633082"
    },
    {
      "job": 79503814587,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7409663792"
    },
    {
      "job": 79503814709,
      "time": 71,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7409655481"
    },
    {
      "job": 79503814630,
      "time": 111,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7409667777"
    },
    {
      "job": 79503814673,
      "time": 82,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7409658627"
    }
  ],
  "_buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/scriptloc",
  "_commit": {
    "id": "92b3354615cc13d46f9d6599572c51daf5daee3e",
    "author": "Naren Chandran Sakthivel <narenschandran@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.0\n",
    "time": 1692290086
  },
  "_maintainer": {
    "name": "Naren Chandran Sakthivel",
    "email": "narenschandran@gmail.com",
    "login": "narenschandran",
    "description": "",
    "uuid": 32371961,
    "orcid": "0000-0001-7728-0985"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.6.0",
      "role": "Depends"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "prettydoc",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "narenschandran",
      "count": 1,
      "uuid": 32371961
    }
  ],
  "_userbio": {
    "uuid": 32371961,
    "type": "user",
    "name": "Naren C S"
  },
  "_downloads": {
    "count": 127,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/scriptloc"
  },
  "_searchresults": 6,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/scriptloc.html",
    "manual.pdf"
  ],
  "_realowner": "narenschandran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-08-17"
    }
  ],
  "_exports": [
    "script_dir_get",
    "scriptloc"
  ],
  "_help": [
    {
      "page": "script_dir_get",
      "title": "Return directory where the script exists",
      "topics": [
        "script_dir_get"
      ]
    },
    {
      "page": "script_file_get",
      "title": "Get location of script that was executed through Rscript",
      "topics": [
        "script_file_get"
      ]
    },
    {
      "page": "scriptloc",
      "title": "Get location of script in a fashion analagous to $BASH_SOURCE[0]",
      "topics": [
        "scriptloc"
      ]
    },
    {
      "page": "src_file_get",
      "title": "Get location of script that was loaded through the source() function",
      "topics": [
        "src_file_get"
      ]
    }
  ],
  "_readme": "https://github.com/cran/scriptloc/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "scriptloc.Rmd",
      "filename": "scriptloc.html",
      "title": "scriptloc",
      "author": "Naren C S",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The quickest user guide imaginable",
        "The only thing that can mess up scriptloc",
        "The Project Path Problem",
        "A solution from BASH",
        "The scriptloc solution",
        "scriptloc works across any depth of execution"
      ],
      "created": "2023-08-17 16:34:46",
      "modified": "2023-08-17 16:34:46",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "scriptloc",
  "_universes": [
    "narenschandran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-04T10:58:10.000Z",
      "distro": "noble",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "a2144eb9f733c9d35c03f122d095441f6852deafeb1e1d03ac7e5d9736737c1a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-06-04T10:57:43.000Z",
      "distro": "noble",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "bc248a952266db10bc7641d4309f4be1b706c5458c0e9da1a441261fc5fd5f7c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-06-04T10:57:58.000Z",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "168149de60b3b6b5d8d368d7eb6342eca366ada50e0952e2b416254c34ca46a5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-06-04T10:58:13.000Z",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "33c19e3a349221d5a08f8bd25ab3e64637cb9dd9fdaa67395e7542430589b15a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-06-04T10:57:49.000Z",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "1b0ea79ee4ba8c61f3b0c0aa2baa0d1fd7e8018bf139869aae96e73d3b90ef33",
      "status": "success",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-04T10:57:12.000Z",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "3714b76db95fbbce5e8754f19526cf5532b5be685e60f1e29f0d603d2eb58eb7",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-04T10:57:48.000Z",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "22263849892b9891b903c8fe4bba39a6dcf06271376ce80dcd0a1c23f29a2093",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-06-04T10:57:17.000Z",
      "commit": "92b3354615cc13d46f9d6599572c51daf5daee3e",
      "fileid": "7778c09c58b54b55fee29dae17fcaf74f1a8ee2c33bf694e0102e8e1e9113a52",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/narenschandran/actions/runs/26947300972"
    }
  ]
}