R6: Encapsulated Classes with Reference Semantics

Creates classes with reference semantics, similar to R's built-in reference classes. Compared to reference classes, R6 classes are simpler and lighter-weight, and they are not built on S4 classes so they do not require the methods package. These classes allow public and private members, and they support inheritance, even when the classes are defined in different packages.

Version: 2.6.1
Depends: R (≥ 3.6)
Suggests: lobstr, testthat (≥ 3.0.0)
Published: 2025年02月15日
Author: Winston Chang [aut, cre], Posit Software, PBC [cph, fnd]
Maintainer: Winston Chang <winston at posit.co>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README, NEWS
In views: Databases
CRAN checks: R6 results

Documentation:

Reference manual: R6.html , R6.pdf

Downloads:

Package source: R6_2.6.1.tar.gz
Windows binaries: r-devel: R6_2.6.1.zip, r-release: R6_2.6.1.zip, r-oldrel: R6_2.6.1.zip
macOS binaries: r-release (arm64): R6_2.6.1.tgz, r-oldrel (arm64): R6_2.6.1.tgz, r-release (x86_64): R6_2.6.1.tgz, r-oldrel (x86_64): R6_2.6.1.tgz
Old sources: R6 archive

Reverse dependencies:

Reverse imports: ABM, adobeanalyticsr, affiner, agghoo, AIPW, almanac, AlphaSimR, AMPLE, animate, anndata, anndataR, anybadger, ao, aorsf, appeears, arcgisutils, ArctosR, argparse, arrangements, arrow, ASSISTant, atom4R, automatedtests, autonewsmd, autotab, avidaR, azr, AzureAuth, AzureContainers, AzureGraph, AzureKeyVault, AzureKusto, AzureRMR, AzureStor, AzureVM, banditpam, basictabler, batchtools, bbotk, bdpar, beakr, bender, biodb, biodbChebi, BKTR, blit, boodist, bootGOF, brickster, bsreg, bsvars, bsvarSIGNs, bsynth, cabinets, CADF, callr, carts, CaseBasedReasoning, casino, causalOT, CBN2Path, CFtime, charlatan, checked, choroplethr, chromote, cicerone, cjar, CleanUpRNAseq, cliapp, clinicalomicsdbR, clustermq, coala, codacore, cohortBuilder, cometr, compareMCMCs, conditionz, conductor, conflr, ConfMatrix, connectapi, connector, connector.databricks, connectwidgets, conos, container, corpustools, counterfactuals, cramR, crew, crew.aws.batch, crew.cluster, criticalpath, CRMetrics, crosstalk, crul, csdb, ctsmTMB, CustomDerivative, d4storagehub4R, data.tree, data.validator, datadriftR, DataSpaceR, dbnR, dbplyr, deepregression, deeptrafo, deFit, deident, delayed, deltatest, depCensoring, desc, designit, Dict, dictionar6, dipsaus, DiscreteTests, diseasystore, distcomp, dockerfiler, dotprofile, DoubleML, dplyr, DPpack, DPTM, DrugExposureDiagnostics, dtreg, DTRreg, DTSg, dynatop, dynatopGIS, earthtide, easybio, eCerto, ecmwfr, eddington, edibble, einops, elastic, ellmer, epivizrServer, epizootic, eplusr, escalation, esci, estimateW, ETDQualitizer, fabletools, factset.protobuf.stach.v2, fastGLCM, fauxpas, fcaR, fiery, fig, fio, firesafety, firesale, firestorm, fixtuRes, flipr, flowml, fmeffects, FormShare, foundry, fscache, fuseMLR, FuzzyDBScan, fuzzywuzzyR, gamstransfer, GauPro, GBOP2, GenAI, geodl, GeoFIS, geoflow, geojsonR, geometa, GeoMongo, geonapi, geonode4R, geosapi, ggExtra, ggPMX, Ghost, ghql, giacR, GitAI, GitStats, gKRLS, glmmrBase, glow, gnn, gofreg, GPTreeO, gptstudio, gqlr, GREMLINS, growR, guiplot, gvcR, hakaiApi, hdar, hdcate, hdf5r, hera, hermes, hesim, highMLR, hipread, hmer, hoardr, homomorpheR, HospitalNetwork, httpuv, httr, httr2, huxtable, hypeR, ieegio, iglm, iml, immundata, imt, innsight, ino, intmap, intSDM, ipc, ipumsr, irace, itscalledsoccer, jaatha, jackalope, jmv, jmvcore, jobqueue, jrc, jsmodule, jsonvalidate, keras, keyring, kfre, KGode, kmeRtone, knitrProgressBar, knitxl, KoboconnectR, laminr, languageserver, lazyarray, lazybar, leafdown, LearnNonparam, less, LFDREmpiricalBayes, lgr, lgrExtra, LifeInsureR, lightgbm, limonaid, linne, lmtp, log, lslx, lumberjack, luz, maestro, makepipe, mapfit, matrixset, mbg, mcboost, mcparallelDo, meconetcomp, mecoturn, metacore, metaRange, MethEvolSIM, MetricGraph, MGDrivE, MGPSDK, mgpStreamingSDK, microeco, Microsoft365R, midi, miesmuschel, mini007, missSBM, mkin, mlapi, mlexperiments, mLLMCelltype, mllrnrs, mlr3, mlr3benchmark, mlr3cluster, mlr3db, mlr3fairness, mlr3fda, mlr3filters, mlr3fselect, mlr3hyperband, mlr3inferr, mlr3learners, mlr3mbo, mlr3misc, mlr3oml, mlr3pipelines, mlr3resampling, mlr3spatial, mlr3spatiotempcv, mlr3torch, mlr3tuning, mlr3tuningspaces, mlrintermbo, mlsurvlrnrs, MLwrap, modeltuning, mpactr, mRpostman, multidplyr, multiverse, muttest, ncdfCF, ncodeR, neo4r, newsmd, ngboostForecast, nimble, nmslibR, NNbenchmark, noah, notionapi, ocs4R, ODataQuery, odin, oeli, officer, okxAPI, onelogin, onlineforecast, oolong, ooplah, openeo, OpenImageR, openmetrics, openmpp, openSkies, openxlsx2, optic, optimizeR, orderly, osqp, otp, ottr, ows4R, PACVr, pagoda2, paleopop, palm, parabar, paradox, PaRe, particle.swarm.optimisation, patternplot, PetfindeR, photon, piecemeal, piecenorms, piecepackr, pipeflow, piqp, pivottabler, pkgbuild, pkgcache, pkgdepends, pkgnet, PlackettLuce, player, PLNmodels, plnr, plumber, plumber2, plume, poems, pool, powerly, prcbench, prioritizr, processx, progress, promises, PTXQC, PvSTATEM, R.AlphA.Home, R6causal, R6DS, R6P, r6qualitytools, rAccess, ravecore, ravepipeline, ravetools, RBaseX, rbc, rbedrock, rbit, rbm25, rcdo, rcmdcheck, rcrossref, RCTrep, rDataPipeline, rdecision, rdhs, RDML, readNSx, readr, rearrr, redux, regport, regreplaceR, rENA, reqres, request, reservr, RestRserve, retistruct, rgbif, rgee, rgeomstats, RGF, rgl, rgl2gltf, rgoogleclassroom, rhub, rhype, rib, riemtan, rim, ring, RKEEL, RLescalation, RLoptimal, rlowdb, rly, rmzqc, rocker, rodeo, RonFHIR, ROOPSD, rosv, rotor, routr, roxygen2, rpact, Rpolyhedra, rsdmx, RSQL, rstack, rts2, rtson, rupturesRcpp, rush, rwarrior, s3fs, sae4health, safetensors, samplr, SAR, sass, sbm, scales, scatr, SCDB, sched, searchAnalyzeR, selectr, selenium, SelfControlledCaseSeries, semverutils, seqtrie, SerolyzeR, sevenbridges2, sFFLHD, shiny, shiny.emptystate, shiny.i18n, shiny.semantic, shiny.telemetry, shinyChatR, shinydbauth, shinyHugePlot, shinyloadtest, shinymanager, shinymrp, shinyOAuth, shinyQueryBuilder, shinystate, shinytest, shinytest2, simcausal, SIMplyBee, slash, snapcount, sofa, solitude, solrium, spsComps, spsUtil, sqlq, SSEparser, StabilizedRegression, starsTileServer, stcpR6, stenographer, stenR, stochtree, storr, stoRy, strand, SuperGauss, SuperpixelImageSegmentation, systemPipeShiny, table.express, targeted, targets, taxize, teal.reporter, teal.slice, telegram, telegram.bot, testthat, text2vec, textTinyR, theiaR, TheseusPlot, thor, thredds, threeBrain, thriftr, tidygraph, tidyhte, tidymodlr, tidyprompt, timeR, tinkr, tok, torch, TOSTER, transltr, transportr, TreatmentPatterns, treesitter, triact, TrialSimulator, tsibbletalk, TVMVP, twbparser, twenty48, txtq, unifir, unstruwwel, vaultr, vcr, verifyr2, versioning, villager, vitals, vmTools, vstsr, wactor, waiter, walrus, watcher, webdriver, webmockr, websocket, whirl, wilson, wizaRdry, wyz.code.offensiveProgramming, wyz.code.rdoc, wyz.code.testthat, xmpdf, xtdml, yahoofinancer, zen4R

Linking:

Please use the canonical form https://CRAN.R-project.org/package=R6 to link to this page.

AltStyle によって変換されたページ (->オリジナル) /