| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$comment": "See https://github.com/rstudio/renv", |
| 4 | "title": "renv.lock file", |
| 5 | "description": "A schema for renv.lock files generated by the R package {renv}", |
| 6 | "type": "object", |
| 7 | "properties": { |
| 8 | "R": { |
| 9 | "description": "Version of R used in the project", |
| 10 | "type": "object", |
| 11 | "properties": { |
| 12 | "Version": { |
| 13 | "description": "The version of R used", |
| 14 | "type": "string", |
| 15 | "examples": [ |
| 16 | "4.4.3" |
| 17 | ] |
| 18 | }, |
| 19 | "Repositories": { |
| 20 | "description": "The R repositories used in this project", |
| 21 | "type": "array", |
| 22 | "items": { |
| 23 | "type": "object", |
| 24 | "properties": { |
| 25 | "Name": { |
| 26 | "description": "Name of the repository", |
| 27 | "type": "string", |
| 28 | "examples": [ |
| 29 | "CRAN" |
| 30 | ] |
| 31 | }, |
| 32 | "URL": { |
| 33 | "description": "URL of the repository", |
| 34 | "type": "string", |
| 35 | "format": "uri", |
| 36 | "examples": [ |
| 37 | "https://cloud.r-project.org" |
| 38 | ] |
| 39 | } |
| 40 | }, |
| 41 | "required": [ |
| 42 | "Name", |
| 43 | "URL" |
| 44 | ] |
| 45 | } |
| 46 | } |
| 47 | }, |
| 48 | "required": [ |
| 49 | "Version", |
| 50 | "Repositories" |
| 51 | ] |
| 52 | }, |
| 53 | "Bioconductor": { |
| 54 | "description": "Bioconductor release used in the project", |
| 55 | "type": "object", |
| 56 | "properties": { |
| 57 | "Version": { |
| 58 | "description": "Release of Bioconductor", |
| 59 | "type": "string", |
| 60 | "examples": [ |
| 61 | "3.18" |
| 62 | ] |
| 63 | } |
| 64 | }, |
| 65 | "required": [ |
| 66 | "Version" |
| 67 | ] |
| 68 | }, |
| 69 | "Python": { |
| 70 | "description": "Version of Python used in the project", |
| 71 | "type": "object", |
| 72 | "properties": { |
| 73 | "Name": { |
| 74 | "description": "Path to the Python environment", |
| 75 | "type": "string", |
| 76 | "examples": [ |
| 77 | ".venv", |
| 78 | "./renv/python/virtualenvs/renv-python-3.10" |
| 79 | ] |
| 80 | }, |
| 81 | "Type": { |
| 82 | "description": "Type of Python environment", |
| 83 | "type": "string", |
| 84 | "examples": [ |
| 85 | "virtualenv" |
| 86 | ] |
| 87 | }, |
| 88 | "Version": { |
| 89 | "description": "Version of Python required", |
| 90 | "type": "string", |
| 91 | "examples": [ |
| 92 | "3.10.12", |
| 93 | "3.9.0" |
| 94 | ] |
| 95 | } |
| 96 | }, |
| 97 | "required": [ |
| 98 | "Name", |
| 99 | "Type", |
| 100 | "Version" |
| 101 | ] |
| 102 | }, |
| 103 | "Packages": { |
| 104 | "description": "Packages required by the R project", |
| 105 | "type": "object", |
| 106 | "additionalProperties": { |
| 107 | "type": "object", |
| 108 | "properties": { |
| 109 | "Package": { |
| 110 | "description": "The package name", |
| 111 | "type": "string", |
| 112 | "examples": [ |
| 113 | "ggplot2", |
| 114 | "dplyr" |
| 115 | ] |
| 116 | }, |
| 117 | "Version": { |
| 118 | "description": "The package version", |
| 119 | "type": "string", |
| 120 | "examples": [ |
| 121 | "1.0.0", |
| 122 | "3.4.6" |
| 123 | ] |
| 124 | }, |
| 125 | "Source": { |
| 126 | "description": "The location from which this package was retrieved", |
| 127 | "type": "string", |
| 128 | "examples": [ |
| 129 | "Repository", |
| 130 | "GitHub", |
| 131 | "Bioconductor", |
| 132 | "/mnt/r/pkg/package_name_1.0.1.tar.gz" |
| 133 | ] |
| 134 | }, |
| 135 | "Repository": { |
| 136 | "description": "The name of the repository (if any)", |
| 137 | "type": "string", |
| 138 | "examples": [ |
| 139 | "CRAN" |
| 140 | ] |
| 141 | }, |
| 142 | "Hash": { |
| 143 | "description": "A unique hash for this package", |
| 144 | "type": "string", |
| 145 | "pattern": "^[a-fA-F0-9]{32}$", |
| 146 | "examples": ["06230136b2d2b9ba5805e1963fa6e890"] |
| 147 | }, |
| 148 | "biocViews": { |
| 149 | "description": "Bioconductor package dependencies", |
| 150 | "type": "string" |
| 151 | }, |
| 152 | "RemoteType": { |
| 153 | "description": "Type of remote, typically written for packages installed by the devtools, remotes and pak packages", |
| 154 | "type": "string", |
| 155 | "examples": [ |
| 156 | "standard", |
| 157 | "github" |
| 158 | ] |
| 159 | }, |
| 160 | "RemoteHost": { |
| 161 | "description": "Host for the remote", |
| 162 | "type": "string", |
| 163 | "format": "hostname", |
| 164 | "examples": ["api.github.com"] |
| 165 | }, |
| 166 | "RemoteUsername": { |
| 167 | "description": "Username for the remote repo", |
| 168 | "type": "string" |
| 169 | }, |
| 170 | "RemoteRepo": { |
| 171 | "description": "Repository URL for the remote package", |
| 172 | "type": "string", |
| 173 | "examples": [ |
| 174 | "https://cran.rstudio.com", |
| 175 | "https://cloud.r-project.org" |
| 176 | ] |
| 177 | }, |
| 178 | "RemoteRepos": { |
| 179 | "description": "Remote repositories URIs", |
| 180 | "type": "string", |
| 181 | "format": "uri", |
| 182 | "examples": [ |
| 183 | "https://cran.rstudio.com", |
| 184 | "https://cloud.r-project.org" |
| 185 | ] |
| 186 | }, |
| 187 | "RemoteRef": { |
| 188 | "description": "Git reference (branch, tag) of remote", |
| 189 | "type": "string" |
| 190 | }, |
| 191 | "RemotePkgRef": { |
| 192 | "description": "Package name reference on remote", |
| 193 | "type": "string" |
| 194 | }, |
| 195 | "RemotePkgPlatform": { |
| 196 | "description": "Platform of remote binary", |
| 197 | "type": "string", |
| 198 | "examples": ["aarch64-apple-darwin20"] |
| 199 | }, |
| 200 | "RemoteSha": { |
| 201 | "description": "SHA of remote commit", |
| 202 | "type": "string", |
| 203 | "examples": ["1763e0dcb72fb58d97bab97bb834fc71f1e012bc"] |
| 204 | }, |
| 205 | "Title": { |
| 206 | "description": "Package title from DESCRIPTION", |
| 207 | "type": "string", |
| 208 | "examples": [ |
| 209 | "Read Rectangular Text Data" |
| 210 | ] |
| 211 | }, |
| 212 | "Authors@R": { |
| 213 | "description": "Authors field in DESCRIPTION syntax", |
| 214 | "type": "string" |
| 215 | }, |
| 216 | "Description": { |
| 217 | "description": "Long description from DESCRIPTION file", |
| 218 | "type": "string" |
| 219 | }, |
| 220 | "License": { |
| 221 | "description": "License declared by the package", |
| 222 | "type": "string", |
| 223 | "examples": [ |
| 224 | "MIT + file LICENSE" |
| 225 | ] |
| 226 | }, |
| 227 | "URL": { |
| 228 | "description": "Homepage or URL fields from DESCRIPTION", |
| 229 | "type": "string", |
| 230 | "examples": [ |
| 231 | "https://github.com/tidyverse/readr" |
| 232 | ] |
| 233 | }, |
| 234 | "BugReports": { |
| 235 | "description": "URL for reporting bugs/issues", |
| 236 | "type": "string", |
| 237 | "examples": [ |
| 238 | "https://github.com/tidyverse/readr/issues" |
| 239 | ] |
| 240 | }, |
| 241 | "Author": { |
| 242 | "description": "Formatted Author field", |
| 243 | "type": "string" |
| 244 | }, |
| 245 | "Maintainer": { |
| 246 | "description": "Package maintainer with email", |
| 247 | "type": "string", |
| 248 | "examples": [ |
| 249 | "Jennifer Bryan <[email protected]>" |
| 250 | ] |
| 251 | }, |
| 252 | "Depends": { |
| 253 | "description": "Package dependencies", |
| 254 | "type": "array", |
| 255 | "items": { |
| 256 | "type": "string" |
| 257 | }, |
| 258 | "examples": [ |
| 259 | [ |
| 260 | "R (>= 3.6)", |
| 261 | "jsonlite", |
| 262 | "lifecycle", |
| 263 | "magrittr", |
| 264 | "stringi" |
| 265 | ] |
| 266 | ] |
| 267 | }, |
| 268 | "Imports": { |
| 269 | "description": "Imported packages", |
| 270 | "type": "array", |
| 271 | "items": { |
| 272 | "type": "string" |
| 273 | } |
| 274 | }, |
| 275 | "LinkingTo": { |
| 276 | "description": "Packages linked at compile time", |
| 277 | "type": "array", |
| 278 | "items": { |
| 279 | "type": "string" |
| 280 | } |
| 281 | }, |
| 282 | "Suggests": { |
| 283 | "description": "Suggested packages", |
| 284 | "type": "array", |
| 285 | "items": { |
| 286 | "type": "string" |
| 287 | } |
| 288 | }, |
| 289 | "Enhances": { |
| 290 | "description": "Enhanced packages", |
| 291 | "type": "array", |
| 292 | "items": { |
| 293 | "type": "string" |
| 294 | } |
| 295 | }, |
| 296 | "SystemRequirements": { |
| 297 | "description": "System requirements for compilation", |
| 298 | "type": "string" |
| 299 | }, |
| 300 | "VignetteBuilder": { |
| 301 | "description": "Builder used for vignettes", |
| 302 | "type": "string", |
| 303 | "examples": [ |
| 304 | "knitr", |
| 305 | "rmakrdown" |
| 306 | ] |
| 307 | }, |
| 308 | "Type": { |
| 309 | "description": "Type flag from DESCRIPTION", |
| 310 | "type": "string", |
| 311 | "examples": [ |
| 312 | "Package" |
| 313 | ] |
| 314 | }, |
| 315 | "Date": { |
| 316 | "description": "Publication date of this version. Generally considered deprecated in DESCRIPTION", |
| 317 | "type": "string", |
| 318 | "format": "date", |
| 319 | "examples": [ |
| 320 | "2024-05-06" |
| 321 | ] |
| 322 | }, |
| 323 | "ByteCompile": { |
| 324 | "description": "Whether package is byte-compiled", |
| 325 | "type": "string", |
| 326 | "examples": [ |
| 327 | "true" |
| 328 | ] |
| 329 | }, |
| 330 | "Biarch": { |
| 331 | "description": "Whether binaries built for multiple architectures", |
| 332 | "type": "string", |
| 333 | "examples": [ |
| 334 | "TRUE" |
| 335 | ] |
| 336 | }, |
| 337 | "Encoding": { |
| 338 | "description": "File encoding used by the package", |
| 339 | "type": "string", |
| 340 | "examples": [ |
| 341 | "UTF-8" |
| 342 | ] |
| 343 | }, |
| 344 | "Language": { |
| 345 | "description": "Primary language of the package documentation", |
| 346 | "type": "string", |
| 347 | "examples": [ |
| 348 | "en-US" |
| 349 | ] |
| 350 | }, |
| 351 | "RoxygenNote": { |
| 352 | "description": "RoxygenNote from DESCRIPTION", |
| 353 | "type": "string", |
| 354 | "examples": [ |
| 355 | "7.3.2" |
| 356 | ] |
| 357 | }, |
| 358 | "NeedsCompilation": { |
| 359 | "description": "Flag whether package needs compilation", |
| 360 | "type": "string", |
| 361 | "examples": [ |
| 362 | "yes" |
| 363 | ] |
| 364 | }, |
| 365 | "Copyright": { |
| 366 | "description": "Copyright notes from DESCRIPTION", |
| 367 | "type": "string" |
| 368 | }, |
| 369 | "Config/Needs/website": { |
| 370 | "description": "Configuration for website dependencies", |
| 371 | "type": "string" |
| 372 | }, |
| 373 | "Config/testthat/edition": { |
| 374 | "description": "Which edition of testthat to use", |
| 375 | "type": "string" |
| 376 | }, |
| 377 | "Config/testthat/parallel": { |
| 378 | "description": "Whether testthat runs in parallel", |
| 379 | "type": "string" |
| 380 | }, |
| 381 | "Config/testthat/start-first": { |
| 382 | "description": "testthat start-first phases", |
| 383 | "type": "string" |
| 384 | }, |
| 385 | "Config/autostyle/scope": { |
| 386 | "description": "autostyle configuration scope", |
| 387 | "type": "string" |
| 388 | }, |
| 389 | "Config/autostyle/strict": { |
| 390 | "description": "autostyle strictness flag", |
| 391 | "type": "string" |
| 392 | }, |
| 393 | "Config/autostyle/rmd": { |
| 394 | "description": "autostyle R Markdown support flag", |
| 395 | "type": "string" |
| 396 | } |
| 397 | }, |
| 398 | "required": [ |
| 399 | "Package" |
| 400 | ] |
| 401 | } |
| 402 | } |
| 403 | }, |
| 404 | "required": [ |
| 405 | "R", |
| 406 | "Packages" |
| 407 | ] |
| 408 | } |