{
  "_id": "6a16b89aacfb0bcc41d867e7",
  "Package": "lenses",
  "Version": "0.0.3",
  "Title": "Elegant Data Manipulation with Lenses",
  "Description": "Provides tools for creating and using lenses to simplify\ndata manipulation. Lenses are composable getter/setter pairs\nfor working with data in a purely functional way. Inspired by\nthe 'Haskell' library 'lens' (Kmett, 2012)\n<https://hackage.haskell.org/package/lens>. For a fairly\ncomprehensive (and highly technical) history of lenses please\nsee the 'lens' wiki\n<https://github.com/ekmett/lens/wiki/History-of-Lenses>.",
  "Authors@R": "c(person(\"Chris\", \"Hammill\", , \"cfhammill@gmail.com\", c(\"aut\", \"cre\", \"trl\")), person(\"Ben\", \"Darwin\", , \"\", c(\"aut\", \"trl\")))",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "ByteCompile": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "6.0.1",
  "URL": "http://cfhammill.github.io/lenses,\nhttps://github.com/cfhammill/lenses",
  "BugReports": "https://github.com/cfhammill/lenses/issues",
  "Collate": "'verbs.R' 'lens.R' 'array-lenses.R' 'base-lenses.R' 'utils.R'\n'dataframe-lenses.R' 'utils-pipe.R'",
  "Repository": "https://cfhammill.r-universe.dev",
  "Date/Publication": "2019-03-20 18:45:00 UTC",
  "RemoteUrl": "https://github.com/cfhammill/lenses",
  "RemoteRef": "HEAD",
  "RemoteSha": "50390188ef38842aca4b9d84e4368a01445a09d7",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 09:22:23 UTC",
    "User": "root"
  },
  "Author": "Chris Hammill [aut, cre, trl],\nBen Darwin [aut, trl]",
  "Maintainer": "Chris Hammill <cfhammill@gmail.com>",
  "MD5sum": "0900103c5cb3c9d8f7e54961d74ec14a",
  "_user": "cfhammill",
  "_type": "src",
  "_file": "lenses_0.0.3.tar.gz",
  "_fileid": "cebbca1d716a495694162b91d02445a73d04644ae01c2709735b197018844e26",
  "_filesize": 183975,
  "_sha256": "cebbca1d716a495694162b91d02445a73d04644ae01c2709735b197018844e26",
  "_created": "2026-05-27T09:22:23.000Z",
  "_published": "2026-05-27T09:25:46.740Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78046812095,
      "time": 117,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7236759019"
    },
    {
      "job": 78046811987,
      "time": 105,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236754809"
    },
    {
      "job": 78046812045,
      "time": 168,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7236765476"
    },
    {
      "job": 78046811948,
      "time": 144,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236756497"
    },
    {
      "job": 78046330806,
      "time": 170,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236713979"
    },
    {
      "job": 78046812024,
      "time": 93,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236750178"
    },
    {
      "job": 78046812000,
      "time": 71,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7236742348"
    },
    {
      "job": 78046812058,
      "time": 72,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7236743375"
    },
    {
      "job": 78046812133,
      "time": 71,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7236742291"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cfhammill/lenses",
  "_commit": {
    "id": "50390188ef38842aca4b9d84e4368a01445a09d7",
    "author": "cfhammill <cfhammill@gmail.com>",
    "committer": "cfhammill <cfhammill@gmail.com>",
    "message": "Fix map_l to maintain attributes\n",
    "time": 1553107500
  },
  "_maintainer": {
    "name": "Chris Hammill",
    "email": "cfhammill@gmail.com",
    "login": "cfhammill",
    "mastodon": "@cfhammill@mastodon.social",
    "twitter": "@cfhammill",
    "description": "I'm a data scientist working in neuroinformatics, statistics, and applied machine learning at Unity Health Toronto",
    "uuid": 7467038
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cfhammill",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "functional-programming"
  ],
  "_stars": 28,
  "_contributors": [
    {
      "user": "cfhammill",
      "count": 93,
      "uuid": 7467038
    },
    {
      "user": "bcdarwin",
      "count": 7,
      "uuid": 164148
    }
  ],
  "_userbio": {
    "uuid": 7467038,
    "type": "user",
    "name": "Chris Hammill",
    "description": "I'm a data scientist working in neuroinformatics, statistics, and applied machine learning at Unity Health Toronto"
  },
  "_downloads": {
    "count": 159,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/lenses"
  },
  "_devurl": "https://github.com/cfhammill/lenses",
  "_pkgdown": "http://cfhammill.github.io/lenses",
  "_searchresults": 42,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/lenses.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/cfhammill/lenses",
  "_realowner": "cfhammill",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.3",
      "date": "2019-03-08"
    }
  ],
  "_exports": [
    "%.%",
    "%>%",
    "attr_l",
    "attributes_l",
    "body_l",
    "c_l",
    "class_l",
    "colnames_l",
    "cols_l",
    "cond_il",
    "diag_l",
    "dim_l",
    "dimnames_l",
    "drop_while_il",
    "env_l",
    "filter_il",
    "filter_l",
    "first_l",
    "formals_l",
    "id_l",
    "index",
    "index_l",
    "indexes",
    "indexes_l",
    "last_l",
    "lens",
    "levels_l",
    "lower_tri_l",
    "map_l",
    "names_l",
    "oscope",
    "over",
    "over_map",
    "over_with",
    "reshape_l",
    "rev_l",
    "rownames_l",
    "rows_l",
    "select_l",
    "send",
    "send_over",
    "set",
    "slab_l",
    "slice_l",
    "slot_l",
    "t_l",
    "take_l",
    "take_while_il",
    "to_l",
    "transpose_l",
    "unlist_l",
    "upper_tri_l",
    "view"
  ],
  "_help": [
    {
      "page": "lens-compose",
      "title": "Compose lenses",
      "topics": [
        "%.%"
      ]
    },
    {
      "page": "attr_l",
      "title": "Construct a lens into an attribute",
      "topics": [
        "attr_l"
      ]
    },
    {
      "page": "attributes_l",
      "title": "Attributes lens",
      "topics": [
        "attributes_l"
      ]
    },
    {
      "page": "body_l",
      "title": "Body lens",
      "topics": [
        "body_l"
      ]
    },
    {
      "page": "c_l",
      "title": "Convenient lens composition",
      "topics": [
        "c_l"
      ]
    },
    {
      "page": "class_l",
      "title": "Class lens",
      "topics": [
        "class_l"
      ]
    },
    {
      "page": "colnames_l",
      "title": "A lens into the column names of an object",
      "topics": [
        "colnames_l"
      ]
    },
    {
      "page": "cols_l",
      "title": "Column lens",
      "topics": [
        "cols_l"
      ]
    },
    {
      "page": "cond_il",
      "title": "Conditional lens",
      "topics": [
        "cond_il"
      ]
    },
    {
      "page": "diag_l",
      "title": "Lens into the diagonal of a matrix",
      "topics": [
        "diag_l"
      ]
    },
    {
      "page": "dim_l",
      "title": "Dims lens",
      "topics": [
        "dim_l"
      ]
    },
    {
      "page": "dimnames_l",
      "title": "Dimnames lens",
      "topics": [
        "dimnames_l"
      ]
    },
    {
      "page": "drop_while_il",
      "title": "Conditional trim lens",
      "topics": [
        "drop_while_il"
      ]
    },
    {
      "page": "env_l",
      "title": "Environment lens",
      "topics": [
        "env_l"
      ]
    },
    {
      "page": "filter_il",
      "title": "Filter lens",
      "topics": [
        "filter_il"
      ]
    },
    {
      "page": "filter_l",
      "title": "Filter lens",
      "topics": [
        "filter_l"
      ]
    },
    {
      "page": "first_l",
      "title": "A lens into the first element",
      "topics": [
        "first_l"
      ]
    },
    {
      "page": "formals_l",
      "title": "Formals lens",
      "topics": [
        "formals_l"
      ]
    },
    {
      "page": "id_l",
      "title": "The identity (trivial lens)",
      "topics": [
        "id_l"
      ]
    },
    {
      "page": "index_l",
      "title": "Construct a lens into an index/name",
      "topics": [
        "index",
        "index_l"
      ]
    },
    {
      "page": "indexes_l",
      "title": "Construct a lens into a subset of an object",
      "topics": [
        "indexes",
        "indexes_l"
      ]
    },
    {
      "page": "last_l",
      "title": "A lens into the last element",
      "topics": [
        "last_l"
      ]
    },
    {
      "page": "lens",
      "title": "Construct a lens",
      "topics": [
        "lens"
      ]
    },
    {
      "page": "levels_l",
      "title": "Levels lens",
      "topics": [
        "levels_l"
      ]
    },
    {
      "page": "lower_tri_l",
      "title": "Lens into lower diagonal elements",
      "topics": [
        "lower_tri_l"
      ]
    },
    {
      "page": "map_l",
      "title": "Promote a lens to apply to each element of a list",
      "topics": [
        "map_l"
      ]
    },
    {
      "page": "names_l",
      "title": "A lens into the names of an object",
      "topics": [
        "names_l"
      ]
    },
    {
      "page": "oscope",
      "title": "Bind data to a lens",
      "topics": [
        "oscope"
      ]
    },
    {
      "page": "over",
      "title": "Map a function over a lens",
      "topics": [
        "over"
      ]
    },
    {
      "page": "over_map",
      "title": "Map a function over a list lens",
      "topics": [
        "over_map"
      ]
    },
    {
      "page": "over_with",
      "title": "Map a function over an in scope lens",
      "topics": [
        "over_with"
      ]
    },
    {
      "page": "reshape_l",
      "title": "Lens into a new dimension(s)",
      "topics": [
        "reshape_l"
      ]
    },
    {
      "page": "rev_l",
      "title": "Reverse lens",
      "topics": [
        "rev_l"
      ]
    },
    {
      "page": "rownames_l",
      "title": "A lens into the row names of an object",
      "topics": [
        "rownames_l"
      ]
    },
    {
      "page": "rows_l",
      "title": "Row lens",
      "topics": [
        "rows_l"
      ]
    },
    {
      "page": "select_l",
      "title": "Tidyselect elements by name",
      "topics": [
        "select_l"
      ]
    },
    {
      "page": "send",
      "title": "Set one lens to the view of another",
      "topics": [
        "send"
      ]
    },
    {
      "page": "send_over",
      "title": "Set one lens to the view of another (transformed)",
      "topics": [
        "send_over"
      ]
    },
    {
      "page": "set",
      "title": "Modify data with a lens",
      "topics": [
        "set"
      ]
    },
    {
      "page": "slab_l",
      "title": "Slab lens",
      "topics": [
        "slab_l"
      ]
    },
    {
      "page": "slice_l",
      "title": "Slice lens",
      "topics": [
        "slice_l"
      ]
    },
    {
      "page": "slot_l",
      "title": "Slot lens",
      "topics": [
        "slot_l"
      ]
    },
    {
      "page": "t_l",
      "title": "Matrix transpose lens",
      "topics": [
        "t_l"
      ]
    },
    {
      "page": "take_l",
      "title": "Construct a lens into a prefix of a vector",
      "topics": [
        "take_l"
      ]
    },
    {
      "page": "take_while_il",
      "title": "Conditional head lens",
      "topics": [
        "take_while_il"
      ]
    },
    {
      "page": "to_l",
      "title": "Promote a function to a 'getter' lens",
      "topics": [
        "to_l"
      ]
    },
    {
      "page": "transpose_l",
      "title": "Lens into a list of rows",
      "topics": [
        "transpose_l"
      ]
    },
    {
      "page": "unlist_l",
      "title": "Unlist lens",
      "topics": [
        "unlist_l"
      ]
    },
    {
      "page": "upper_tri_l",
      "title": "Lens into upper diagonal elements",
      "topics": [
        "upper_tri_l"
      ]
    },
    {
      "page": "view",
      "title": "View data with a lens",
      "topics": [
        "view"
      ]
    }
  ],
  "_readme": "https://github.com/cfhammill/lenses/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "glue",
    "lifecycle",
    "magrittr",
    "rlang",
    "tidyselect",
    "vctrs",
    "withr"
  ],
  "_score": 4.769377326076139,
  "_indexed": true,
  "_nocasepkg": "lenses",
  "_universes": [
    "cfhammill"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-05-27T09:24:27.000Z",
      "distro": "noble",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "759b60d7a4db40619ff6896e3d3a992cab16666d795f86771133a0af22bd35a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.3",
      "date": "2026-05-27T09:24:17.000Z",
      "distro": "noble",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "4c3fefa9d5551eeb6f7611b3610955ebec9d6b45e622d17511b67938644171a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-05-27T09:24:29.000Z",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "d68763f2b256758f4b33af86356d99b9fbc3647cd90669175f712ec277382592",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.3",
      "date": "2026-05-27T09:24:21.000Z",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "f9ad18612471cfa9a396c20253fe56ff3c555367c722bcde928e890dc7486ae4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.3",
      "date": "2026-05-27T09:24:17.000Z",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "2cfc8a709e8032d35e78f5e0d8efbbbdfb994b9e0f717de9fc559ef6a0d067c0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-05-27T09:23:39.000Z",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "c37c58fd3c98f0f87cdbbe9c6c850e3b4597ce2d5ada6a22e585cbcd8375dbfc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-05-27T09:23:39.000Z",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "c6664f210a0926117469cd339913091ce75e1964e3eaba67a828ff052487b801",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.3",
      "date": "2026-05-27T09:23:37.000Z",
      "commit": "50390188ef38842aca4b9d84e4368a01445a09d7",
      "fileid": "383e9710613a5064533cb8ba684c5caf7c61fef303c6ce5541712b9111b3213b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cfhammill/actions/runs/26502488753"
    }
  ]
}