{
  "_id": "6acf2fb3d9de2f3f33fc8cdc",
  "Package": "PupillometryR",
  "Type": "Package",
  "Title": "A Unified Pipeline for Pupillometry Data",
  "Version": "0.0.7",
  "Authors@R": "c(person(\"Samuel\", \"Forbes\", email = \"samuel.h.forbes@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"David\", \"Robinson\", email = \"admiral.david@gmail.com\", role = \"ctb\"))",
  "Description": "Provides a unified pipeline to clean, prepare, plot, and\nrun basic analyses on pupillometry experiments.",
  "BugReports": "https://github.com/samhforbes/PupillometryR/issues",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://samhforbes.r-universe.dev",
  "Date/Publication": "2025-12-15 12:05:40 UTC",
  "RemoteUrl": "https://github.com/samhforbes/pupillometryr",
  "RemoteRef": "HEAD",
  "RemoteSha": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-14 07:19:59 UTC",
    "User": "root"
  },
  "Author": "Samuel Forbes [aut, cre],\nDavid Robinson [ctb]",
  "Maintainer": "Samuel Forbes <samuel.h.forbes@gmail.com>",
  "_user": "samhforbes",
  "_type": "src",
  "_file": "PupillometryR_0.0.7.tar.gz",
  "_fileid": "https://r2.ropensci.org/f9e796b6560656d754c4afa3c6de0708437c5748e1026f7c47270ea14a5dd09e",
  "_filesize": 1704742,
  "_sha256": "f9e796b6560656d754c4afa3c6de0708437c5748e1026f7c47270ea14a5dd09e",
  "_expires": "2027-01-22T07:30:57.000Z",
  "_created": "2026-10-14T07:19:59.000Z",
  "_published": "2026-10-14T07:30:59.116Z",
  "_buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115731779954,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11876168065"
    },
    {
      "job": 115731779880,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11876184703"
    },
    {
      "job": 115731779774,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11877260288"
    },
    {
      "job": 115731779974,
      "time": 119,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11877031580"
    },
    {
      "job": 115730663177,
      "time": 191,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11876223963"
    },
    {
      "job": 115731779905,
      "time": 97,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11876422580"
    },
    {
      "job": 115731779761,
      "time": 99,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "11876871065"
    },
    {
      "job": 115731779837,
      "time": 109,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "11876289307"
    },
    {
      "job": 115731779946,
      "time": 73,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "11875834862"
    }
  ],
  "_upstream": "https://github.com/samhforbes/pupillometryr",
  "_commit": {
    "id": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
    "author": "Sam Forbes <samuel.forbes@durham.ac.uk>",
    "committer": "Sam Forbes <samuel.forbes@durham.ac.uk>",
    "message": "0.0.7\n",
    "time": 1765800340
  },
  "_maintainer": {
    "name": "Samuel Forbes",
    "email": "samuel.h.forbes@gmail.com",
    "login": "samhforbes",
    "twitter": "@samhforbes",
    "description": "Associate Professor in Psychology at Durham University",
    "uuid": 18288098
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Depends"
    },
    {
      "package": "fda",
      "role": "Imports"
    },
    {
      "package": "mgcv",
      "role": "Imports"
    },
    {
      "package": "signal",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "zoo",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "samhforbes",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-46",
      "n": 3
    },
    {
      "week": "2025-51",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 48,
  "_contributors": [
    {
      "user": "samhforbes",
      "count": 145,
      "uuid": 18288098
    },
    {
      "user": "tommasoghilardi",
      "count": 3,
      "uuid": 38372956
    },
    {
      "user": "sappelhoff",
      "count": 1,
      "uuid": 9084751
    },
    {
      "user": "tjmahr",
      "count": 1,
      "uuid": 1890315
    }
  ],
  "_userbio": {
    "uuid": 18288098,
    "type": "user",
    "name": "Sam Forbes",
    "followers": 15,
    "description": "Associate Professor in Psychology at Durham University"
  },
  "_downloads": {
    "count": 622,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PupillometryR"
  },
  "_devurl": "https://github.com/samhforbes/pupillometryr",
  "_searchresults": 420,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/PupillometryR.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/samhforbes/pupillometryr",
  "_realowner": "samhforbes",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2020-02-02"
    },
    {
      "version": "0.0.2",
      "date": "2020-05-15"
    },
    {
      "version": "0.0.3",
      "date": "2020-06-13"
    },
    {
      "version": "0.0.4",
      "date": "2021-09-19"
    },
    {
      "version": "0.0.5",
      "date": "2023-09-15"
    },
    {
      "version": "0.0.6",
      "date": "2025-11-10"
    },
    {
      "version": "0.0.7",
      "date": "2025-12-19"
    }
  ],
  "_exports": [
    "baseline_data",
    "calculate_mean_pupil_size",
    "calculate_missing_data",
    "clean_missing_data",
    "create_difference_data",
    "create_functional_data",
    "create_time_windows",
    "create_window_data",
    "detect_blinks_by_column",
    "detect_blinks_by_size",
    "detect_blinks_by_velocity",
    "downsample_time_data",
    "filter_data",
    "geom_flat_violin",
    "interpolate_data",
    "make_pupillometryr_data",
    "regress_data",
    "replace_missing_data",
    "run_functional_t_test",
    "subset_data"
  ],
  "_datasets": [
    {
      "name": "pupil_data",
      "title": "Data collected in a pupillometry study by Sylvain Sirois",
      "object": "pupil_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "ID",
        "Trial",
        "RPupil",
        "LPupil",
        "Timebin",
        "Time",
        "Type"
      ],
      "rows": 28800,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "baseline_data",
      "title": "Baseline pupil data to the average pupil size within a window",
      "topics": [
        "baseline_data"
      ]
    },
    {
      "page": "calculate_mean_pupil_size",
      "title": "Calculate a mean size across two pupils over time",
      "topics": [
        "calculate_mean_pupil_size"
      ]
    },
    {
      "page": "calculate_missing_data",
      "title": "Calculate the missing data amount",
      "topics": [
        "calculate_missing_data"
      ]
    },
    {
      "page": "clean_missing_data",
      "title": "Clean missing data above an acceptable threshold",
      "topics": [
        "clean_missing_data"
      ]
    },
    {
      "page": "create_difference_data",
      "title": "Create a difference data frame when dealing with a condition column with 2 levels",
      "topics": [
        "create_difference_data"
      ]
    },
    {
      "page": "create_functional_data",
      "title": "Makes a functional data with splines from a Pupil_difference_data dataframe.",
      "topics": [
        "create_functional_data"
      ]
    },
    {
      "page": "create_time_windows",
      "title": "Make PupillometryR dataframe into multiple time windows for easy analysis",
      "topics": [
        "create_time_windows"
      ]
    },
    {
      "page": "create_window_data",
      "title": "Make PupillometryR dataframe into a single collapsed window for easy analysis",
      "topics": [
        "create_window_data"
      ]
    },
    {
      "page": "detect_blinks_by_column",
      "title": "detect blinks by a pre-existing labelled blink column that comes from the eyetracker",
      "topics": [
        "detect_blinks_by_column"
      ]
    },
    {
      "page": "detect_blinks_by_size",
      "title": "detect blinks by a change in pupil size",
      "topics": [
        "detect_blinks_by_size"
      ]
    },
    {
      "page": "detect_blinks_by_velocity",
      "title": "detect blinks by a change in velocity",
      "topics": [
        "detect_blinks_by_velocity"
      ]
    },
    {
      "page": "downsample_time_data",
      "title": "Downsample frequency to reduce number of samples and data size",
      "topics": [
        "downsample_time_data"
      ]
    },
    {
      "page": "filter_data",
      "title": "Run a filter on the data to smooth it out.",
      "topics": [
        "filter_data"
      ]
    },
    {
      "page": "geom_flat_violin",
      "title": "ggplot Flat Violin",
      "topics": [
        "geom_flat_violin"
      ]
    },
    {
      "page": "GeomFlatViolin",
      "title": "geom_flat_violin_HELPER2",
      "topics": [
        "GeomFlatViolin"
      ]
    },
    {
      "page": "gfv_helper1",
      "title": "geom_flat_violin_HELPER1",
      "topics": [
        "%||%",
        "gfv_helper1"
      ]
    },
    {
      "page": "interpolate_data",
      "title": "Interpolate across the gaps in data",
      "topics": [
        "interpolate_data"
      ]
    },
    {
      "page": "make_pupillometryr_data",
      "title": "Prepare data for pre-processing in PupillometryR",
      "topics": [
        "make_pupillometryr_data"
      ]
    },
    {
      "page": "mean2",
      "title": "Helper function mean2",
      "topics": [
        "mean2"
      ]
    },
    {
      "page": "plot.Pupil_difference_data",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.Pupil_difference_data"
      ]
    },
    {
      "page": "plot.Pupil_test_data",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.Pupil_test_data"
      ]
    },
    {
      "page": "plot.Pupil_window_data",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.Pupil_window_data"
      ]
    },
    {
      "page": "plot.PupillometryR",
      "title": "Pre-prepared plots of PupillometryR data",
      "topics": [
        "plot.PupillometryR"
      ]
    },
    {
      "page": "pupil_data",
      "title": "Data collected in a pupillometry study by Sylvain Sirois",
      "topics": [
        "pupil_data"
      ]
    },
    {
      "page": "regress_data",
      "title": "Regress one pupil against another for extra smoothing",
      "topics": [
        "regress_data"
      ]
    },
    {
      "page": "replace_missing_data",
      "title": "replaces missing observations if you have some degree of incomplete observations",
      "topics": [
        "replace_missing_data"
      ]
    },
    {
      "page": "run_functional_t_test",
      "title": "Run a functional t-test on a dataframe previously fitted with b-splines.",
      "topics": [
        "run_functional_t_test"
      ]
    },
    {
      "page": "subset_data",
      "title": "Subset data to provide start and finish time windows",
      "topics": [
        "subset_data"
      ]
    }
  ],
  "_readme": "https://github.com/samhforbes/pupillometryr/raw/HEAD/README.md",
  "_rundeps": [
    "ash",
    "bitops",
    "cli",
    "cluster",
    "colorspace",
    "cpp11",
    "deSolve",
    "dplyr",
    "farver",
    "fda",
    "fds",
    "FNN",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "hdrcde",
    "isoband",
    "kernlab",
    "KernSmooth",
    "ks",
    "labeling",
    "lattice",
    "lifecycle",
    "locfit",
    "magrittr",
    "MASS",
    "Matrix",
    "mclust",
    "mgcv",
    "multicool",
    "mvtnorm",
    "nlme",
    "pcaPP",
    "pillar",
    "pkgconfig",
    "pracma",
    "purrr",
    "R6",
    "rainbow",
    "RColorBrewer",
    "Rcpp",
    "RCurl",
    "rlang",
    "S7",
    "scales",
    "signal",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "PupillometryR.Rmd",
      "filename": "PupillometryR.html",
      "title": "PupillometryR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Getting started",
        "Smoothing and cleanup",
        "Window analyses",
        "Modelling with Generalised Additive Models",
        "Estimating divergences with functional data analysis",
        "Acknowledgements",
        "References"
      ],
      "created": "2020-06-02 08:35:31",
      "modified": "2025-12-15 12:05:40",
      "commits": 10
    }
  ],
  "_score": 8.258733037212814,
  "_indexed": true,
  "_nocasepkg": "pupillometryr",
  "_universes": [
    "samhforbes"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.7",
      "date": "2026-10-14T07:22:43.000Z",
      "distro": "resolute",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/69cef5de9fe813a52d81b40182f4a1f48fe648e52f2d01cb0a39e098719def3b",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.7",
      "date": "2026-10-14T07:22:11.000Z",
      "distro": "resolute",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/1260ea7f722b26c5067afc7381946861df8f7e855bb396154b5c6cdef92a9f89",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.7",
      "date": "2026-10-14T07:24:47.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/a909bf8cfa4f737cc447e9b04090e37bf3921700f959c1c2444c04ace3cf03e1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.7",
      "date": "2026-10-14T07:30:09.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/3a1ce89bec988d7322f6031421792fbf25450238a4e8d262a1482b679aa75be0",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.7",
      "date": "2026-10-14T07:21:59.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/49e26d3b1c9d64973775f3e6e0c5b765b92e69e69957b918b8dbde6a1a405d38",
      "status": "success",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-10-14T07:21:09.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/36d95e6d08c198ddf1b2febbba6fac69b22dcf3f2b5a150468ee04f16721a75d",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-10-14T07:21:21.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/e380d11acbf1e62286395a6d9a9c4658361c109d77052a53afc8e3401ca6e70f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.7",
      "date": "2026-10-14T07:21:03.000Z",
      "commit": "1fc24c80ef8587053398c2c7af89a9d4f06d3af5",
      "fileid": "https://r2.ropensci.org/495e3f3686eb3f5caf6c9e421d799d909b0e1256043ef955b288f1207949e765",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/samhforbes/actions/runs/38527296356"
    }
  ]
}