{
  "_id": "6a633ae8d3420cf5dfdb8e19",
  "Package": "dsm",
  "Maintainer": "Laura Marshall <lhm@st-andrews.ac.uk>",
  "License": "GPL (>= 2)",
  "Title": "Density Surface Modelling of Distance Sampling Data",
  "LazyLoad": "yes",
  "Authors@R": "c(person(given=c(\"Laura\"),\nfamily=\"Marshall\",\nemail = \"lhm@st-andrews.ac.uk\" ,\nrole = \"cre\"),\nperson(given=c(\"David\", \"L.\"),\nfamily=\"Miller\",\nrole=c(\"aut\")),\nperson(given=\"Eric\",\nfamily=\"Rexstad\",\nrole=\"ctb\"),\nperson(given=\"Louise\",\nfamily=\"Burt\",\nrole=\"ctb\"),\nperson(given=c(\"Mark\", \"V.\"),\nfamily=\"Bravington\",\nrole=\"ctb\"),\nperson(given=\"Sharon\",\nfamily=\"Hedley\",\nrole=\"ctb\"),\nperson(given=\"Megan\",\nfamily=\"Ferguson\",\nrole=\"ctb\"),\nperson(given=\"Natalie\",\nfamily=\"Kelly\",\nrole=\"ctb\"))",
  "Description": "Density surface modelling of line transect data. A\nGeneralized Additive Model-based approach is used to calculate\nspatially-explicit estimates of animal abundance from distance\nsampling (also presence/absence and strip transect) data.\nSeveral utility functions are provided for model checking,\nplotting and variance estimation.",
  "Version": "2.3.4",
  "Language": "en-GB",
  "Encoding": "UTF-8",
  "URL": "https://github.com/DistanceDevelopment/dsm",
  "BugReports": "https://github.com/DistanceDevelopment/dsm/issues",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://distancedevelopment.r-universe.dev",
  "Date/Publication": "2026-06-24 11:20:13 UTC",
  "RemoteUrl": "https://github.com/distanceDevelopment/dsm",
  "RemoteRef": "HEAD",
  "RemoteSha": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-24 08:03:49 UTC",
    "User": "root"
  },
  "Author": "Laura Marshall [cre],\nDavid L. Miller [aut],\nEric Rexstad [ctb],\nLouise Burt [ctb],\nMark V. Bravington [ctb],\nSharon Hedley [ctb],\nMegan Ferguson [ctb],\nNatalie Kelly [ctb]",
  "_user": "distancedevelopment",
  "_type": "src",
  "_file": "dsm_2.3.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/5c92a0af7fa62eeddf24759b71c1997e7373d120f5b8fc7072dbe6dc7031edfc",
  "_filesize": 314691,
  "_sha256": "5c92a0af7fa62eeddf24759b71c1997e7373d120f5b8fc7072dbe6dc7031edfc",
  "_expires": "2026-11-01T10:13:58.000Z",
  "_created": "2026-07-24T08:03:49.000Z",
  "_published": "2026-07-24T10:14:00.499Z",
  "_jobs": [
    {
      "job": 89431755421,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8590535706"
    },
    {
      "job": 89431755397,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8590538866"
    },
    {
      "job": 89431755475,
      "time": 91,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8593271617"
    },
    {
      "job": 89431755425,
      "time": 136,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8593487417"
    },
    {
      "job": 89431130301,
      "time": 199,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8590471930"
    },
    {
      "job": 89431755427,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8590514750"
    },
    {
      "job": 89431755445,
      "time": 116,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8590517161"
    },
    {
      "job": 89431755499,
      "time": 156,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8590531641"
    },
    {
      "job": 89431755436,
      "time": 128,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8590521047"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030",
  "_status": "success",
  "_upstream": "https://github.com/distanceDevelopment/dsm",
  "_commit": {
    "id": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
    "author": "Laura Marshall <L_H_Marshall@yahoo.co.uk>",
    "committer": "Laura Marshall <L_H_Marshall@yahoo.co.uk>",
    "message": "Update README.md\n\nReflect change in main brain naming\n",
    "time": 1782300013
  },
  "_maintainer": {
    "name": "Laura Marshall",
    "email": "lhm@st-andrews.ac.uk",
    "login": "lhmarshall",
    "description": "",
    "uuid": 1295691
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "mgcv",
      "version": ">= 1.8-23",
      "role": "Depends"
    },
    {
      "package": "mrds",
      "version": ">= 2.1.16",
      "role": "Depends"
    },
    {
      "package": "numDeriv",
      "role": "Depends"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "statmod",
      "role": "Imports"
    },
    {
      "package": "Distance",
      "role": "Suggests"
    },
    {
      "package": "sp",
      "role": "Suggests"
    },
    {
      "package": "tweedie",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "distancedevelopment",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 4
    },
    {
      "week": "2025-38",
      "n": 3
    },
    {
      "week": "2026-26",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 8,
  "_contributors": [
    {
      "user": "dill",
      "count": 159,
      "uuid": 1953
    },
    {
      "user": "lhmarshall",
      "count": 35,
      "uuid": 1295691
    },
    {
      "user": "erex",
      "count": 11,
      "uuid": 330744
    },
    {
      "user": "lenthomas",
      "count": 1,
      "uuid": 129519
    }
  ],
  "_userbio": {
    "uuid": 4293301,
    "type": "organization",
    "name": "Distance development",
    "followers": 17,
    "description": "Distance sampling software development team"
  },
  "_downloads": {
    "count": 346,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dsm"
  },
  "_mentions": 7,
  "_devurl": "https://github.com/distancedevelopment/dsm",
  "_searchresults": 167,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dsm.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/distancedevelopment/dsm",
  "_realowner": "distancedevelopment",
  "_cranurl": true,
  "_releases": [
    {
      "version": "2.0",
      "date": "2012-11-24"
    },
    {
      "version": "2.0.1",
      "date": "2013-02-21"
    },
    {
      "version": "2.1.3",
      "date": "2013-08-20"
    },
    {
      "version": "2.2.3",
      "date": "2014-04-23"
    },
    {
      "version": "2.2.4",
      "date": "2014-06-17"
    },
    {
      "version": "2.2.5",
      "date": "2014-09-15"
    },
    {
      "version": "2.2.9",
      "date": "2015-07-29"
    },
    {
      "version": "2.2.12",
      "date": "2016-08-11"
    },
    {
      "version": "2.2.13",
      "date": "2016-10-07"
    },
    {
      "version": "2.2.14",
      "date": "2017-01-26"
    },
    {
      "version": "2.2.15",
      "date": "2017-07-03"
    },
    {
      "version": "2.2.16",
      "date": "2018-06-27"
    },
    {
      "version": "2.2.17",
      "date": "2019-01-19"
    },
    {
      "version": "2.3.0",
      "date": "2020-04-22"
    },
    {
      "version": "2.3.1",
      "date": "2021-03-27"
    },
    {
      "version": "2.3.2",
      "date": "2022-03-17"
    },
    {
      "version": "2.3.3",
      "date": "2022-08-20"
    },
    {
      "version": "2.3.4",
      "date": "2025-09-02"
    }
  ],
  "_exports": [
    "dsm",
    "dsm_cor",
    "dsm_var_gam",
    "dsm_var_movblk",
    "dsm_var_prop",
    "dsm_varprop",
    "dsm.cor",
    "dsm.var.gam",
    "dsm.var.movblk",
    "dsm.var.prop",
    "dummy_ddf",
    "generate.ds.uncertainty",
    "generate.mb.sample",
    "latlong2km",
    "make.soapgrid",
    "obs_exp",
    "plot_pred_by_term",
    "rqgam_check",
    "rqgam.check",
    "trim.var",
    "vis_concurvity",
    "vis.concurvity"
  ],
  "_datasets": [
    {
      "name": "distdata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "object",
        "size",
        "distance",
        "Effort",
        "detected",
        "beaufort",
        "latitude",
        "longitude",
        "x",
        "y"
      ],
      "rows": 47,
      "table": true,
      "tojson": true
    },
    {
      "name": "obsdata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "object",
        "Sample.Label",
        "size",
        "distance",
        "Effort"
      ],
      "rows": 47,
      "table": true,
      "tojson": true
    },
    {
      "name": "preddata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "latitude",
        "longitude",
        "x",
        "y",
        "depth",
        "area"
      ],
      "rows": 1374,
      "table": true,
      "tojson": true
    },
    {
      "name": "segdata",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "object": "mexdolphins",
      "file": "mexdolphins.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "longitude",
        "latitude",
        "x",
        "y",
        "Effort",
        "Transect.Label",
        "Sample.Label",
        "depth"
      ],
      "rows": 387,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dsm-package",
      "title": "Density surface modelling",
      "topics": [
        "dsm-package"
      ]
    },
    {
      "page": "block.info.per.su",
      "title": "Find the block information",
      "topics": [
        "block.info.per.su"
      ]
    },
    {
      "page": "check.cols",
      "title": "Check column names exist",
      "topics": [
        "check.cols"
      ]
    },
    {
      "page": "dsm",
      "title": "Fit a density surface model to segment-specific estimates of abundance or density.",
      "topics": [
        "dsm"
      ]
    },
    {
      "page": "dsm_cor",
      "title": "Check for autocorrelation in residuals",
      "topics": [
        "dsm_cor"
      ]
    },
    {
      "page": "dsm_var_gam",
      "title": "Prediction variance estimation assuming independence",
      "topics": [
        "dsm_var_gam"
      ]
    },
    {
      "page": "dsm_var_movblk",
      "title": "Variance estimation via parametric moving block bootstrap",
      "topics": [
        "dsm_var_movblk"
      ]
    },
    {
      "page": "dsm_var_prop",
      "title": "Prediction variance propagation for DSMs",
      "topics": [
        "dsm_var_prop"
      ]
    },
    {
      "page": "dsm_varprop",
      "title": "Variance propagation for density surface models",
      "topics": [
        "dsm_varprop"
      ]
    },
    {
      "page": "dsm-data",
      "title": "Data format for DSM",
      "topics": [
        "dsm-data"
      ]
    },
    {
      "page": "dsm.cor",
      "title": "Check for autocorrelation in residuals",
      "topics": [
        "dsm.cor"
      ]
    },
    {
      "page": "dsm.var.gam",
      "title": "Prediction variance estimation assuming independence",
      "topics": [
        "dsm.var.gam"
      ]
    },
    {
      "page": "dsm.var.movblk",
      "title": "Variance estimation via parametric moving block bootstrap",
      "topics": [
        "dsm.var.movblk"
      ]
    },
    {
      "page": "dsm.var.prop",
      "title": "Prediction variance propagation for DSMs",
      "topics": [
        "dsm.var.prop"
      ]
    },
    {
      "page": "dummy_ddf",
      "title": "Detection function objects when detection is certain",
      "topics": [
        "dummy_ddf"
      ]
    },
    {
      "page": "generate.ds.uncertainty",
      "title": "Generate data from a fitted detection function",
      "topics": [
        "generate.ds.uncertainty"
      ]
    },
    {
      "page": "generate.mb.sample",
      "title": "Moving block bootstrap sampler",
      "topics": [
        "generate.mb.sample"
      ]
    },
    {
      "page": "latlong2km",
      "title": "Convert latitude and longitude to Northings and Eastings",
      "topics": [
        "latlong2km"
      ]
    },
    {
      "page": "make.soapgrid",
      "title": "Create a knot grid for the internal part of a soap film smoother.",
      "topics": [
        "make.soapgrid"
      ]
    },
    {
      "page": "mexdolphins",
      "title": "Pan-tropical spotted dolphins in the Gulf of Mexico",
      "topics": [
        "distdata",
        "mexdolphins",
        "obsdata",
        "pred.polys",
        "preddata",
        "segdata",
        "survey.area"
      ]
    },
    {
      "page": "obs_exp",
      "title": "Observed versus expected diagnostics for fitted DSMs",
      "topics": [
        "obs_exp"
      ]
    },
    {
      "page": "plot_pred_by_term",
      "title": "Spatially plot predictions per model term",
      "topics": [
        "plot_pred_by_term"
      ]
    },
    {
      "page": "plot.dsm",
      "title": "Plot a density surface model.",
      "topics": [
        "plot.dsm"
      ]
    },
    {
      "page": "plot.dsm.var",
      "title": "Create plots of abundance uncertainty",
      "topics": [
        "plot.dsm.var"
      ]
    },
    {
      "page": "predict.dsm",
      "title": "Predict from a fitted density surface model",
      "topics": [
        "predict.dsm"
      ]
    },
    {
      "page": "predict.fake_ddf",
      "title": "Prediction for fake detection functions",
      "topics": [
        "predict.fake_ddf"
      ]
    },
    {
      "page": "print.dsm",
      "title": "Print a description of a density surface model object",
      "topics": [
        "print.dsm"
      ]
    },
    {
      "page": "print.dsm_varprop",
      "title": "Print a description of a density surface model variance object",
      "topics": [
        "print.dsm_varprop"
      ]
    },
    {
      "page": "print.dsm.var",
      "title": "Print a description of a density surface model variance object",
      "topics": [
        "print.dsm.var"
      ]
    },
    {
      "page": "print.summary.dsm_varprop",
      "title": "Print summary of density surface model variance object",
      "topics": [
        "print.summary.dsm_varprop"
      ]
    },
    {
      "page": "print.summary.dsm.var",
      "title": "Print summary of density surface model variance object",
      "topics": [
        "print.summary.dsm.var"
      ]
    },
    {
      "page": "rqgam_check",
      "title": "Randomised quantile residuals check plot for GAMs/DSMs",
      "topics": [
        "rqgam_check"
      ]
    },
    {
      "page": "rqgam.check",
      "title": "Randomised quantile residuals check plot for GAMs/DSMs",
      "topics": [
        "rqgam.check"
      ]
    },
    {
      "page": "summary.dsm",
      "title": "Summarize a fitted density surface model",
      "topics": [
        "summary.dsm"
      ]
    },
    {
      "page": "summary.dsm_varprop",
      "title": "Summarize the variance of a density surface model",
      "topics": [
        "summary.dsm_varprop"
      ]
    },
    {
      "page": "summary.dsm.var",
      "title": "Summarize the variance of a density surface model",
      "topics": [
        "summary.dsm.var"
      ]
    },
    {
      "page": "trim.var",
      "title": "Trimmed variance",
      "topics": [
        "trim.var"
      ]
    },
    {
      "page": "vis_concurvity",
      "title": "Visualise concurvity between terms in a GAM",
      "topics": [
        "vis_concurvity"
      ]
    },
    {
      "page": "vis.concurvity",
      "title": "Visualise concurvity between terms in a GAM",
      "topics": [
        "vis.concurvity"
      ]
    }
  ],
  "_readme": "https://github.com/distanceDevelopment/dsm/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "cpp11",
    "digest",
    "farver",
    "future",
    "future.apply",
    "ggplot2",
    "globals",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "Matrix",
    "mgcv",
    "mrds",
    "nlme",
    "nloptr",
    "numDeriv",
    "optimx",
    "parallelly",
    "plyr",
    "pracma",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "Rdpack",
    "rlang",
    "Rsolnp",
    "S7",
    "scales",
    "statmod",
    "truncnorm",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 6.624117011929128,
  "_indexed": true,
  "_nocasepkg": "dsm",
  "_universes": [
    "distancedevelopment",
    "lhmarshall"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.3.4",
      "date": "2026-07-24T08:06:12.000Z",
      "distro": "resolute",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/68b5e9b9c8ddcd35099066686527db2f08c10ce4353faebe10d931efbde1679d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.3.4",
      "date": "2026-07-24T08:06:20.000Z",
      "distro": "resolute",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/0945a9d76529134840e8752e09a45a057999eabf6b33b3e98cb7823e414819b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.3.4",
      "date": "2026-07-24T10:03:45.000Z",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/30cc7ae76986bd05d23fb4c4e69cd7e8ae1527e2f14bbd5c7c1892ab88c2696a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.3.4",
      "date": "2026-07-24T10:12:55.000Z",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/5ade9064b6bf45f7938d305c4a742a78a90df348b0087d19ee8064b1d41e0dd4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.3.4",
      "date": "2026-07-24T08:06:04.000Z",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/4d79098700925139b9b5e3c2bbf5853def7e5bf0175a642c35453af8985bb8f0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.3.4",
      "date": "2026-07-24T08:05:17.000Z",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/ef715c0ec4dd873fc2364970c0e15bfafde3d032b94987fa1cb2a79eeec1e1e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.3.4",
      "date": "2026-07-24T08:05:51.000Z",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/c872e4f3eb4391c0667e84e89fa7c75a1e7d8c54aa6b5c84a665cc44e3dbf6a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.3.4",
      "date": "2026-07-24T08:05:24.000Z",
      "commit": "e5fd5db34b700d4b78459763188223ea89e2a8ba",
      "fileid": "https://r2.ropensci.org/a6755eb976c1dfbebdd3189112e6a1f9613d43b7504eca5af8c781388519f8d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/distancedevelopment/actions/runs/30077363030"
    }
  ]
}