statistics.scm 257 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
  3. ;;; Copyright © 2015 Vicente Vera Parra <vicentemvp@gmail.com>
  4. ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
  5. ;;; Copyright © 2016, 2017, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
  6. ;;; Copyright © 2016 Pjotr Prins <pjotr.guix@thebird.nl>
  7. ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
  8. ;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
  9. ;;; Copyright © 2016, 2017 Raoul Bonnal <ilpuccio.febo@gmail.com>
  10. ;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
  11. ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
  12. ;;; Copyright © 2017 Alex Kost <alezost@gmail.com>
  13. ;;; Copyright © 2018 Alex Branham <alex.branham@gmail.com>
  14. ;;; Copyright © 2020 Tim Howes <timhowes@lavabit.com>
  15. ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
  16. ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
  17. ;;; Copyright © 2021 Lars-Dominik Braun <lars@6xq.net>
  18. ;;; Copyright © 2021 Frank Pursel <frank.pursel@gmail.com>
  19. ;;; Copyright © 2022 Simon Tournier <zimon.toutoune@gmail.com>
  20. ;;;
  21. ;;; This file is part of GNU Guix.
  22. ;;;
  23. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  24. ;;; under the terms of the GNU General Public License as published by
  25. ;;; the Free Software Foundation; either version 3 of the License, or (at
  26. ;;; your option) any later version.
  27. ;;;
  28. ;;; GNU Guix is distributed in the hope that it will be useful, but
  29. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  30. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31. ;;; GNU General Public License for more details.
  32. ;;;
  33. ;;; You should have received a copy of the GNU General Public License
  34. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  35. (define-module (gnu packages statistics)
  36. #:use-module (guix gexp)
  37. #:use-module ((guix licenses) #:prefix license:)
  38. #:use-module (guix packages)
  39. #:use-module (guix download)
  40. #:use-module (guix hg-download)
  41. #:use-module (guix git-download)
  42. #:use-module (guix utils)
  43. #:use-module (guix build-system ant)
  44. #:use-module (guix build-system emacs)
  45. #:use-module (guix build-system gnu)
  46. #:use-module (guix build-system r)
  47. #:use-module (guix build-system python)
  48. #:use-module (guix build-system trivial)
  49. #:use-module (gnu packages)
  50. #:use-module (gnu packages algebra)
  51. #:use-module (gnu packages autotools)
  52. #:use-module (gnu packages bash)
  53. #:use-module (gnu packages check)
  54. #:use-module (gnu packages compression)
  55. #:use-module (gnu packages cran)
  56. #:use-module (gnu packages curl)
  57. #:use-module (gnu packages emacs)
  58. #:use-module (gnu packages emacs-xyz)
  59. #:use-module (gnu packages fontutils)
  60. #:use-module (gnu packages gcc)
  61. #:use-module (gnu packages gtk)
  62. #:use-module (gnu packages gettext)
  63. #:use-module (gnu packages glib)
  64. #:use-module (gnu packages haskell-xyz)
  65. #:use-module (gnu packages icu4c)
  66. #:use-module (gnu packages image)
  67. #:use-module (gnu packages java)
  68. #:use-module (gnu packages javascript)
  69. #:use-module (gnu packages libffi)
  70. #:use-module (gnu packages machine-learning)
  71. #:use-module (gnu packages maths)
  72. #:use-module (gnu packages multiprecision)
  73. #:use-module (gnu packages ncurses)
  74. #:use-module (gnu packages pcre)
  75. #:use-module (gnu packages perl)
  76. #:use-module (gnu packages pkg-config)
  77. #:use-module (gnu packages python)
  78. #:use-module (gnu packages python-science)
  79. #:use-module (gnu packages python-xyz)
  80. #:use-module (gnu packages readline)
  81. #:use-module (gnu packages shells)
  82. #:use-module (gnu packages sphinx)
  83. #:use-module (gnu packages ssh)
  84. #:use-module (gnu packages tcl)
  85. #:use-module (gnu packages tex)
  86. #:use-module (gnu packages texinfo)
  87. #:use-module (gnu packages time)
  88. #:use-module (gnu packages tls)
  89. #:use-module (gnu packages base)
  90. #:use-module (gnu packages uglifyjs)
  91. #:use-module (gnu packages version-control)
  92. #:use-module (gnu packages web)
  93. #:use-module (gnu packages xml)
  94. #:use-module (gnu packages xorg)
  95. #:use-module (srfi srfi-1)
  96. #:use-module (ice-9 match))
  97. (define-public pspp
  98. (package
  99. (name "pspp")
  100. (version "1.4.1")
  101. (source
  102. (origin
  103. (method url-fetch)
  104. (uri (string-append "mirror://gnu/pspp/pspp-"
  105. version ".tar.gz"))
  106. (sha256
  107. (base32
  108. "0lqrash677b09zxdlxp89z6k02y4i23mbqg83956dwl69wc53dan"))))
  109. (build-system gnu-build-system)
  110. (arguments
  111. (list #:phases
  112. #~(modify-phases %standard-phases
  113. (add-before 'check 'prepare-tests
  114. ;; Prevent irrelevant errors that cause test output mismatches:
  115. ;; ‘Fontconfig error: No writable cache directories’
  116. (lambda _
  117. (setenv "XDG_CACHE_HOME" (getcwd)))))))
  118. (inputs
  119. (list cairo
  120. gettext-minimal
  121. gsl
  122. libxml2
  123. pango
  124. readline
  125. gtk+
  126. gtksourceview-3
  127. spread-sheet-widget
  128. zlib))
  129. (native-inputs
  130. (list autoconf ;for tests
  131. `(,glib "bin") ;for glib-genmarshal
  132. perl
  133. pkg-config
  134. python-2 ;for tests
  135. texinfo))
  136. (home-page "https://www.gnu.org/software/pspp/")
  137. (synopsis "Statistical analysis")
  138. (description
  139. "GNU PSPP is a statistical analysis program. It can perform
  140. descriptive statistics, T-tests, linear regression and non-parametric tests.
  141. It features both a graphical interface as well as command-line input. PSPP
  142. is designed to interoperate with Gnumeric, LibreOffice and OpenOffice. Data
  143. can be imported from spreadsheets, text files and database sources and it can
  144. be output in text, PostScript, PDF or HTML.")
  145. (license license:gpl3+)))
  146. (define-public jags
  147. (package
  148. (name "jags")
  149. (version "4.3.0")
  150. (source (origin
  151. (method url-fetch)
  152. (uri (string-append "mirror://sourceforge/mcmc-jags/JAGS/"
  153. (version-major version) ".x/Source/"
  154. "JAGS-" version ".tar.gz"))
  155. (sha256
  156. (base32
  157. "1z3icccg2ic56vmhyrpinlsvpq7kcaflk1731rgpvz9bk1bxvica"))))
  158. (build-system gnu-build-system)
  159. (home-page "http://mcmc-jags.sourceforge.net/")
  160. (native-inputs
  161. (list gfortran lapack))
  162. (synopsis "Gibbs sampler")
  163. (description "JAGS is Just Another Gibbs Sampler. It is a program for
  164. analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC)
  165. simulation not wholly unlike BUGS. JAGS was written with three aims in mind:
  166. @enumerate
  167. @item To have a cross-platform engine for the BUGS language;
  168. @item To be extensible, allowing users to write their own functions,
  169. distributions and samplers;
  170. @item To be a platform for experimentation with ideas in Bayesian modelling.
  171. @end enumerate\n")
  172. (license license:gpl2)))
  173. (define-public libxls
  174. (package
  175. (name "libxls")
  176. (version "1.6.2")
  177. (source
  178. (origin
  179. (method url-fetch)
  180. (uri (string-append "https://github.com/libxls/libxls/releases/download/"
  181. "v" version "/libxls-" version ".tar.gz"))
  182. (sha256
  183. (base32 "0wg3ymr43aa1j3scyl9x83b2xgg7wilzpil0dj91a8dzji6w7b2x"))))
  184. (build-system gnu-build-system)
  185. (home-page "https://github.com/libxls/libxls")
  186. (synopsis "Read binary (.xls) Excel spreadsheet files")
  187. (description
  188. "libxls is a C library to read .xls spreadsheet files in the binary OLE
  189. BIFF8 format as created by Excel 97 and later versions. It cannot write them.
  190. This package also provides @command{xls2csv} to export Excel files to CSV.")
  191. (license license:bsd-2)))
  192. ;; Update this package together with the set of recommended packages: r-boot,
  193. ;; r-class, r-cluster, r-codetools, r-foreign, r-kernsmooth, r-lattice,
  194. ;; r-mass, r-matrix, r-mgcv, r-nlme, r-nnet, r-rpart, r-spatial, r-survival.
  195. (define r-with-tests
  196. (package
  197. (name "r-with-tests")
  198. (version "4.1.2")
  199. (source (origin
  200. (method url-fetch)
  201. (uri (string-append "mirror://cran/src/base/R-"
  202. (version-major version) "/R-"
  203. version ".tar.gz"))
  204. (sha256
  205. (base32
  206. "1brqmc7mmb0z94kcs4crgl6v9a6sxhm9fm3y177d81vjkxg24di0"))))
  207. (build-system gnu-build-system)
  208. (arguments
  209. `(#:disallowed-references (,tzdata-for-tests)
  210. #:make-flags
  211. (list (string-append "LDFLAGS=-Wl,-rpath="
  212. (assoc-ref %outputs "out")
  213. "/lib/R/lib")
  214. ;; This affects the embedded timestamp of only the core packages.
  215. "PKG_BUILT_STAMP=1970-01-01")
  216. #:phases
  217. (modify-phases %standard-phases
  218. (add-before 'configure 'do-not-compress-serialized-files
  219. (lambda* (#:key inputs #:allow-other-keys)
  220. ;; This ensures that Guix can detect embedded store references;
  221. ;; see bug #28157 for details.
  222. (substitute* "src/library/base/makebasedb.R"
  223. (("compress = TRUE") "compress = FALSE"))))
  224. (add-before 'configure 'patch-coreutils-paths
  225. (lambda* (#:key inputs #:allow-other-keys)
  226. (let ((uname-bin (search-input-file inputs "/bin/uname"))
  227. (rm-bin (search-input-file inputs "/bin/rm")))
  228. (substitute* "src/scripts/R.sh.in"
  229. (("uname") uname-bin))
  230. (substitute* "src/unix/sys-std.c"
  231. (("rm -Rf ") (string-append rm-bin " -Rf "))))))
  232. (add-after 'unpack 'build-reproducibly
  233. (lambda _
  234. ;; The documentation contains time stamps to demonstrate
  235. ;; documentation generation in different phases.
  236. (substitute* "src/library/tools/man/Rd2HTML.Rd"
  237. (("\\\\%Y-\\\\%m-\\\\%d at \\\\%H:\\\\%M:\\\\%S")
  238. "(removed for reproducibility)"))
  239. ;; Remove timestamp from tracing environment. This fixes
  240. ;; reproducibility of "methods.rd{b,x}".
  241. (substitute* "src/library/methods/R/trace.R"
  242. (("dateCreated = Sys.time\\(\\)")
  243. "dateCreated = as.POSIXct(\"1970-1-1 00:00:00\", tz = \"UTC\")"))
  244. ;; Ensure that gzipped files are reproducible.
  245. (substitute* '("src/library/grDevices/Makefile.in"
  246. "doc/manual/Makefile.in")
  247. (("R_GZIPCMD\\)" line)
  248. (string-append line " -n")))
  249. ;; The "srcfile" procedure in "src/library/base/R/srcfile.R"
  250. ;; queries the mtime of a given file and records it in an object.
  251. ;; This is acceptable at runtime to detect stale source files,
  252. ;; but it destroys reproducibility at build time.
  253. ;; Similarly, the "srcfilecopy" procedure records the current
  254. ;; time. We change both of them to respect SOURCE_DATE_EPOCH.
  255. (substitute* "src/library/base/R/srcfile.R"
  256. (("timestamp <- (timestamp.*|file.mtime.*)" _ time)
  257. (string-append "timestamp <- \
  258. as.POSIXct(if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
  259. as.numeric(Sys.getenv(\"SOURCE_DATE_EPOCH\"))\
  260. } else { " time "}, origin=\"1970-01-01\")\n")))
  261. ;; This library is installed using "install_package_description",
  262. ;; so we need to pass the "builtStamp" argument.
  263. (substitute* "src/library/tools/Makefile.in"
  264. (("(install_package_description\\(.*\"')\\)\"" line prefix)
  265. (string-append prefix ", builtStamp='1970-01-01')\"")))
  266. (substitute* "src/library/Recommended/Makefile.in"
  267. (("INSTALL_OPTS =" m)
  268. (string-append m " --built-timestamp=1970-01-01" m)))
  269. ;; R bundles an older version of help2man, which does not respect
  270. ;; SOURCE_DATE_EPOCH. We cannot just use the latest help2man,
  271. ;; because that breaks a test.
  272. (with-fluids ((%default-port-encoding "ISO-8859-1"))
  273. (substitute* "tools/help2man.pl"
  274. (("my \\$date = strftime \"%B %Y\", localtime" line)
  275. (string-append line " 1"))))
  276. ;; The "References" section of this file when converted to
  277. ;; package.rds is sometimes stored with a newline, sometimes with
  278. ;; a space. We avoid this problem by removing the line break
  279. ;; that is suspected to be the culprit.
  280. (substitute* "src/library/methods/DESCRIPTION.in"
  281. (("\\(2008\\)\n") "(2008) ")
  282. ((" ``Software") "``Software")
  283. (("Data Analysis:.") "Data Analysis:\n")
  284. (("Programming with R") " Programming with R"))))
  285. (add-before 'build 'set-locales
  286. (lambda _
  287. (setlocale LC_ALL "C")
  288. (setenv "LC_ALL" "C")))
  289. (add-before 'configure 'set-default-pager
  290. ;; Set default pager to "cat", because otherwise it is "false",
  291. ;; making "help()" print nothing at all.
  292. (lambda _ (setenv "PAGER" "cat")))
  293. (add-before 'check 'set-timezone
  294. ;; Some tests require the timezone to be set. However, the
  295. ;; timezone may not just be "UTC", or else a brittle regression
  296. ;; test in reg-tests-1d will fail.
  297. (lambda* (#:key inputs #:allow-other-keys)
  298. (setenv "TZ" "UTC+1")
  299. (setenv "TZDIR"
  300. (search-input-directory inputs
  301. "share/zoneinfo"))))
  302. (add-after 'build 'make-info
  303. (lambda _ (invoke "make" "info")))
  304. (add-after 'build 'install-info
  305. (lambda _ (invoke "make" "install-info"))))
  306. #:configure-flags
  307. `(;; We build the recommended packages here, because they are needed in
  308. ;; order to run the test suite. We disable them in the r-minimal
  309. ;; package.
  310. "--with-cairo"
  311. "--with-blas=-lopenblas"
  312. "--with-libpng"
  313. "--with-jpeglib"
  314. "--with-libtiff"
  315. "--with-ICU"
  316. "--with-tcltk"
  317. ,(string-append "--with-tcl-config="
  318. (assoc-ref %build-inputs "tcl")
  319. "/lib/tclConfig.sh")
  320. ,(string-append "--with-tk-config="
  321. (assoc-ref %build-inputs "tk")
  322. "/lib/tkConfig.sh")
  323. "--enable-R-shlib"
  324. "--enable-BLAS-shlib"
  325. "--with-system-tre")))
  326. ;; R has some support for Java. When the JDK is available at configure
  327. ;; time environment variables pointing to the JDK will be recorded under
  328. ;; $R_HOME/etc and ./tools/getsp.java will be compiled which is used by "R
  329. ;; CMD javareconf". "R CMD javareconf" appears to only be used to update
  330. ;; the recorded environment variables in $R_HOME/etc. Refer to
  331. ;; https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
  332. ;; for additional information.
  333. ;; As the JDK is a rather large input with only very limited effects on R,
  334. ;; we decided to drop it.
  335. (native-inputs
  336. `(("bzip2" ,bzip2)
  337. ("perl" ,perl)
  338. ("pkg-config" ,pkg-config)
  339. ("texinfo" ,texinfo) ; for building HTML manuals
  340. ("texlive" ,(texlive-updmap.cfg (list texlive-ae
  341. texlive-inconsolata
  342. texlive-fonts-ec
  343. texlive-grfext
  344. texlive-amsfonts
  345. texlive-latex-base
  346. texlive-latex-fancyvrb
  347. texlive-latex-graphics
  348. texlive-hyperref
  349. texlive-oberdiek
  350. texlive-latex-tools
  351. texlive-latex-upquote
  352. texlive-url
  353. texlive-latex-xkeyval)))
  354. ("tzdata" ,tzdata-for-tests)
  355. ("xz" ,xz)))
  356. (inputs
  357. `(;; We need not only cairo here, but pango to ensure that tests for the
  358. ;; "cairo" bitmapType plotting backend succeed.
  359. ("pango" ,pango)
  360. ("coreutils" ,coreutils)
  361. ("curl" ,curl)
  362. ("openblas" ,openblas)
  363. ("gfortran" ,gfortran)
  364. ("icu4c" ,icu4c)
  365. ("libjpeg" ,libjpeg-turbo)
  366. ("libpng" ,libpng)
  367. ("libtiff" ,libtiff)
  368. ("libxt" ,libxt)
  369. ("pcre2" ,pcre2)
  370. ("readline" ,readline)
  371. ;; This avoids a reference to the ungraftable static bash. R uses the
  372. ;; detected shell for the "system" procedure.
  373. ("bash" ,bash-minimal)
  374. ("tcl" ,tcl)
  375. ("tk" ,tk)
  376. ("which" ,which)
  377. ("zlib" ,zlib)))
  378. (native-search-paths
  379. (list (search-path-specification
  380. (variable "R_LIBS_SITE")
  381. (files (list "site-library/")))))
  382. (home-page "https://www.r-project.org/")
  383. (synopsis "Environment for statistical computing and graphics")
  384. (description
  385. "R is a language and environment for statistical computing and graphics.
  386. It provides a variety of statistical techniques, such as linear and nonlinear
  387. modeling, classical statistical tests, time-series analysis, classification
  388. and clustering. It also provides robust support for producing
  389. publication-quality data plots. A large amount of 3rd-party packages are
  390. available, greatly increasing its breadth and scope.")
  391. (license license:gpl3+)))
  392. (define-public r-minimal
  393. (package (inherit r-with-tests)
  394. (name "r-minimal")
  395. (arguments
  396. `(#:tests? #f
  397. ,@(substitute-keyword-arguments (package-arguments r-with-tests)
  398. ((#:disallowed-references refs '())
  399. (cons perl refs))
  400. ((#:configure-flags flags)
  401. ;; Do not build the recommended packages. The build system creates
  402. ;; random temporary directories and embeds their names in some
  403. ;; package files. We build these packages with the r-build-system
  404. ;; instead.
  405. `(cons "--without-recommended-packages" ,flags))
  406. ((#:phases phases '%standard-phases)
  407. `(modify-phases ,phases
  408. (add-after 'install 'remove-extraneous-references
  409. (lambda* (#:key inputs outputs #:allow-other-keys)
  410. (let ((out (assoc-ref outputs "out")))
  411. (substitute* (string-append out "/lib/R/etc/Makeconf")
  412. (("^# configure.*")
  413. "# Removed to avoid extraneous references\n"))
  414. (substitute* (string-append out "/lib/R/bin/libtool")
  415. (((string-append
  416. "(-L)?("
  417. (assoc-ref inputs "bzip2")
  418. "|"
  419. (assoc-ref inputs "perl")
  420. "|"
  421. (assoc-ref inputs "texlive")
  422. "|"
  423. (assoc-ref inputs "texlive-bin")
  424. "|"
  425. (assoc-ref inputs "texinfo")
  426. "|"
  427. (assoc-ref inputs "xz")
  428. "|"
  429. (format #false
  430. "/gnu/store/[^-]+-(~{~a~^|~})-[^/]+"
  431. '("glibc-utf8-locales"
  432. "libselinux"
  433. "libsepol"
  434. "file"
  435. "texlive-bin"
  436. "util-macros"
  437. "graphite2"))
  438. "|"
  439. "/gnu/store/[^-]+-glibc-[^-]+-static"
  440. ")/lib")) ""))))))))))))
  441. (define-public rmath-standalone
  442. (package (inherit r-minimal)
  443. (name "rmath-standalone")
  444. (arguments
  445. '(#:phases
  446. (modify-phases %standard-phases
  447. (add-after 'configure 'chdir
  448. (lambda _ (chdir "src/nmath/standalone/") #t)))))
  449. (synopsis "Standalone R math library")
  450. (description
  451. "This package provides the R math library as an independent package.")))
  452. (define-public r-boot
  453. (package
  454. (name "r-boot")
  455. (version "1.3-28")
  456. (source
  457. (origin
  458. (method url-fetch)
  459. (uri (cran-uri "boot" version))
  460. (sha256
  461. (base32
  462. "0cjafhqv1c1mrjjcasqr767vs96wjcc6am9r1icryr8l4zymhwcz"))))
  463. (build-system r-build-system)
  464. (home-page "https://cran.r-project.org/web/packages/boot")
  465. (synopsis "Bootstrap functions for R")
  466. (description
  467. "This package provides functions and datasets for bootstrapping from the
  468. book \"Bootstrap Methods and Their Application\" by A.C. Davison and
  469. D.V. Hinkley (1997, CUP), originally written by Angelo Canty for S.")
  470. ;; Unlimited distribution
  471. (license (license:non-copyleft "file://R/bootfuns.q"))))
  472. (define-public r-mass
  473. (package
  474. (name "r-mass")
  475. (version "7.3-55")
  476. (source
  477. (origin
  478. (method url-fetch)
  479. (uri (cran-uri "MASS" version))
  480. (sha256
  481. (base32
  482. "191i1iylvh2w2hi99fnm06731lma7z5snpjknfff1m9ziyy9qab5"))))
  483. (properties `((upstream-name . "MASS")))
  484. (build-system r-build-system)
  485. (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
  486. (synopsis "Support functions and datasets for Venables and Ripley's MASS")
  487. (description
  488. "This package provides functions and datasets for the book \"Modern
  489. Applied Statistics with S\" (4th edition, 2002) by Venables and Ripley.")
  490. ;; Either version may be picked.
  491. (license (list license:gpl2 license:gpl3))))
  492. (define-public r-class
  493. (package
  494. (name "r-class")
  495. (version "7.3-20")
  496. (source
  497. (origin
  498. (method url-fetch)
  499. (uri (cran-uri "class" version))
  500. (sha256
  501. (base32
  502. "10slys2jny4k2j8l8k97hwrwd6ryzajfnzywqpq2yc9bqxmh8nz6"))))
  503. (build-system r-build-system)
  504. (propagated-inputs
  505. (list r-mass))
  506. (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
  507. (synopsis "R functions for classification")
  508. (description
  509. "This package provides various functions for classification, including
  510. k-nearest neighbour, Learning Vector Quantization and Self-Organizing Maps.")
  511. ;; Either of the two versions can be picked.
  512. (license (list license:gpl2 license:gpl3))))
  513. (define-public r-cluster
  514. (package
  515. (name "r-cluster")
  516. (version "2.1.2")
  517. (source
  518. (origin
  519. (method url-fetch)
  520. (uri (cran-uri "cluster" version))
  521. (sha256
  522. (base32
  523. "168l653ygkg21fwrqrf7lsqi5p6jzhgmcvhrwv7lznkdzdhag2jw"))))
  524. (build-system r-build-system)
  525. (native-inputs
  526. (list gfortran))
  527. (home-page "https://cran.r-project.org/web/packages/cluster")
  528. (synopsis "Methods for cluster analysis")
  529. (description
  530. "This package provides methods for cluster analysis. It is a much
  531. extended version of the original from Peter Rousseeuw, Anja Struyf and Mia
  532. Hubert, based on Kaufman and Rousseeuw (1990) \"Finding Groups in Data\".")
  533. (license license:gpl2+)))
  534. (define-public r-codetools
  535. (package
  536. (name "r-codetools")
  537. (version "0.2-18")
  538. (source
  539. (origin
  540. (method url-fetch)
  541. (uri (cran-uri "codetools" version))
  542. (sha256
  543. (base32
  544. "0a2c115glq8jxixwfigrpvjabhxchn9r4mc40y41dg9dg6wsd7hs"))))
  545. (build-system r-build-system)
  546. (home-page "https://cran.r-project.org/web/packages/codetools")
  547. (synopsis "Code analysis tools for R")
  548. (description "This package provides code analysis tools for R to check R
  549. code for possible problems.")
  550. ;; Any version of the GPL.
  551. (license (list license:gpl2+ license:gpl3+))))
  552. (define-public r-foreign
  553. (package
  554. (name "r-foreign")
  555. (version "0.8-82")
  556. (source
  557. (origin
  558. (method url-fetch)
  559. (uri (cran-uri "foreign" version))
  560. (sha256
  561. (base32
  562. "1yw07yqzfm4w1h92ijyamrmf7rmkqxgamqfd74x7zv4vsn20dvgq"))))
  563. (build-system r-build-system)
  564. (home-page "https://cran.r-project.org/web/packages/foreign")
  565. (synopsis "Read data stored by other statistics software")
  566. (description
  567. "This package provides functions for reading and writing data stored by
  568. some versions of Epi Info, Minitab, S, SAS, SPSS, Stata, Systat and Weka and
  569. for reading and writing some dBase files.")
  570. (license license:gpl2+)))
  571. (define-public r-kernsmooth
  572. (package
  573. (name "r-kernsmooth")
  574. (version "2.23-20")
  575. (source
  576. (origin
  577. (method url-fetch)
  578. (uri (cran-uri "KernSmooth" version))
  579. (sha256
  580. (base32
  581. "0fgclmzk3ksjsh3j47jqzm3jhqrwn12rkp7f84yr6wr43q2pbsr0"))))
  582. (properties `((upstream-name . "KernSmooth")))
  583. (build-system r-build-system)
  584. (native-inputs
  585. (list gfortran))
  586. (home-page "https://cran.r-project.org/web/packages/KernSmooth")
  587. (synopsis "Functions for kernel smoothing")
  588. (description
  589. "This package provides functions for kernel smoothing (and density
  590. estimation) corresponding to the book: Wand, M.P. and Jones, M.C. (1995)
  591. \"Kernel Smoothing\".")
  592. ;; Unlimited use and distribution
  593. (license (license:non-copyleft "file://LICENCE.note"))))
  594. (define-public r-lattice
  595. (package
  596. (name "r-lattice")
  597. (version "0.20-45")
  598. (source (origin
  599. (method url-fetch)
  600. (uri (cran-uri "lattice" version))
  601. (sha256
  602. (base32
  603. "1b87fmyjzbg854vpi03my1p25n3d0bchhwsdm2frblxppn98sf12"))))
  604. (build-system r-build-system)
  605. (home-page "http://lattice.r-forge.r-project.org/")
  606. (synopsis "High-level data visualization system")
  607. (description
  608. "The lattice package provides a powerful and elegant high-level data
  609. visualization system inspired by Trellis graphics, with an emphasis on
  610. multivariate data. Lattice is sufficient for typical graphics needs, and is
  611. also flexible enough to handle most nonstandard requirements.")
  612. (license license:gpl2+)))
  613. (define-public r-matrix
  614. (package
  615. (name "r-matrix")
  616. (version "1.4-0")
  617. (source
  618. (origin
  619. (method url-fetch)
  620. (uri (cran-uri "Matrix" version))
  621. (sha256
  622. (base32
  623. "1xh62bwcly1blpvnagbhjym1qgw87yir3c72ylhvcla05rq67d62"))))
  624. (properties `((upstream-name . "Matrix")))
  625. (build-system r-build-system)
  626. (propagated-inputs
  627. (list r-lattice))
  628. (home-page "http://Matrix.R-forge.R-project.org/")
  629. (synopsis "Sparse and dense matrix classes and methods")
  630. (description
  631. "This package provides classes and methods for dense and sparse matrices
  632. and operations on them using LAPACK and SuiteSparse.")
  633. (license license:gpl2+)))
  634. (define-public r-nlme
  635. (package
  636. (name "r-nlme")
  637. (version "3.1-155")
  638. (source
  639. (origin
  640. (method url-fetch)
  641. (uri (cran-uri "nlme" version))
  642. (sha256
  643. (base32 "0kzzpl63l298yy18x62ypgbhdw61fgm30lc4nlhjjhjj5220yfcz"))))
  644. (build-system r-build-system)
  645. (propagated-inputs
  646. (list r-lattice))
  647. (native-inputs
  648. (list gfortran))
  649. (home-page "https://cran.r-project.org/web/packages/nlme")
  650. (synopsis "Linear and nonlinear mixed effects models")
  651. (description
  652. "This package provides tools to fit and compare Gaussian linear and
  653. nonlinear mixed-effects models.")
  654. (license license:gpl2+)))
  655. (define-public r-mgcv
  656. (package
  657. (name "r-mgcv")
  658. (version "1.8-39")
  659. (source
  660. (origin
  661. (method url-fetch)
  662. (uri (cran-uri "mgcv" version))
  663. (sha256
  664. (base32 "15h1k9qyn8s8xy4x2361mj42vdq8ml5xskzqpkc45zj1a3gss6w4"))))
  665. (build-system r-build-system)
  666. (propagated-inputs
  667. (list r-matrix r-nlme))
  668. (home-page "https://cran.r-project.org/web/packages/mgcv")
  669. (synopsis "Mixed generalised additive model computation")
  670. (description
  671. "GAMs, GAMMs and other generalized ridge regression with multiple smoothing
  672. parameter estimation by GCV, REML or UBRE/AIC. The library includes a
  673. @code{gam()} function, a wide variety of smoothers, JAGS support and
  674. distributions beyond the exponential family.")
  675. (license license:gpl2+)))
  676. (define-public r-nnet
  677. (package
  678. (name "r-nnet")
  679. (version "7.3-17")
  680. (source
  681. (origin
  682. (method url-fetch)
  683. (uri (cran-uri "nnet" version))
  684. (sha256
  685. (base32
  686. "0rws3rkd7dz1maz2mkld29jfrixjgacay8rqz7nmi82a2sw0nxgf"))))
  687. (build-system r-build-system)
  688. (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
  689. (synopsis "Feed-forward neural networks and multinomial log-linear models")
  690. (description
  691. "This package provides functions for feed-forward neural networks with a
  692. single hidden layer, and for multinomial log-linear models.")
  693. (license (list license:gpl2+ license:gpl3+))))
  694. (define-public r-rpart
  695. (package
  696. (name "r-rpart")
  697. (version "4.1.16")
  698. (source
  699. (origin
  700. (method url-fetch)
  701. (uri (cran-uri "rpart" version))
  702. (sha256
  703. (base32
  704. "0p22657j6ps6z1dn0ja2fhq4k5xd1rv3cpwzk6nmjd2si8jpbv17"))))
  705. (build-system r-build-system)
  706. (home-page "https://cran.r-project.org/web/packages/rpart")
  707. (synopsis "Recursive partitioning and regression trees")
  708. (description
  709. "This package provides recursive partitioning functions for
  710. classification, regression and survival trees.")
  711. (license (list license:gpl2+ license:gpl3+))))
  712. (define-public r-spatial
  713. (package
  714. (name "r-spatial")
  715. (version "7.3-15")
  716. (source
  717. (origin
  718. (method url-fetch)
  719. (uri (cran-uri "spatial" version))
  720. (sha256
  721. (base32
  722. "1vwc7ingskdj1k4nq418x9yl3cw699pckb9xh5a1yp3g9plknqg5"))))
  723. (build-system r-build-system)
  724. (home-page "http://www.stats.ox.ac.uk/pub/MASS4/")
  725. (synopsis "Functions for kriging and point pattern analysis")
  726. (description
  727. "This package provides functions for kriging and point pattern
  728. analysis.")
  729. ;; Either version may be picked.
  730. (license (list license:gpl2 license:gpl3))))
  731. (define-public r-survival
  732. (package
  733. (name "r-survival")
  734. (version "3.3-1")
  735. (source
  736. (origin
  737. (method url-fetch)
  738. (uri (cran-uri "survival" version))
  739. (sha256
  740. (base32
  741. "1isdrcvrzi118xiyigckj9sq1xl4m92180brmpzdqzhcrl2qg1ql"))))
  742. (build-system r-build-system)
  743. (propagated-inputs
  744. (list r-matrix))
  745. (home-page "https://github.com/therneau/survival")
  746. (synopsis "Survival analysis")
  747. (description
  748. "This package contains the core survival analysis routines, including
  749. definition of Surv objects, Kaplan-Meier and Aalen-Johansen (multi-state)
  750. curves, Cox models, and parametric accelerated failure time models.")
  751. (license license:lgpl2.0+)))
  752. (define-public r
  753. (package (inherit r-minimal)
  754. (name "r")
  755. (source #f)
  756. (build-system trivial-build-system)
  757. (arguments '(#:builder (begin (mkdir %output) #t)))
  758. (propagated-inputs
  759. (list r-minimal
  760. r-boot
  761. r-class
  762. r-cluster
  763. r-codetools
  764. r-foreign
  765. r-kernsmooth
  766. r-lattice
  767. r-mass
  768. r-matrix
  769. r-mgcv
  770. r-nlme
  771. r-nnet
  772. r-rpart
  773. r-spatial
  774. r-survival))))
  775. (define-public r-bit
  776. (package
  777. (name "r-bit")
  778. (version "4.0.4")
  779. (source
  780. (origin
  781. (method url-fetch)
  782. (uri (cran-uri "bit" version))
  783. (sha256
  784. (base32
  785. "0s7isadibxp2wr62r5cpbyh9z31sczzfz4j3rm7gxgjfpqgq8174"))))
  786. (build-system r-build-system)
  787. (native-inputs
  788. (list r-knitr))
  789. (home-page "http://ff.r-forge.r-project.org")
  790. (synopsis "Class for vectors of 1-bit booleans")
  791. (description
  792. "This package provides bitmapped vectors of booleans (no @code{NA}s),
  793. coercion from and to logicals, integers and integer subscripts, fast boolean
  794. operators and fast summary statistics. With @code{bit} class vectors of true
  795. binary booleans, @code{TRUE} and @code{FALSE} can be stored with 1 bit only.")
  796. (license license:gpl2)))
  797. (define-public r-bit64
  798. (package
  799. (name "r-bit64")
  800. (version "4.0.5")
  801. (source
  802. (origin
  803. (method url-fetch)
  804. (uri (cran-uri "bit64" version))
  805. (sha256
  806. (base32
  807. "0y0m7q1rwam1g88cjx7zyi07mj5dipxd9jkl90f294syx8k6ipr5"))))
  808. (build-system r-build-system)
  809. (propagated-inputs
  810. (list r-bit))
  811. (home-page "http://ff.r-forge.r-project.org/")
  812. (synopsis "S3 class for vectors of 64 bit integers")
  813. (description
  814. "The bit64 package provides serializable S3 atomic 64 bit (signed)
  815. integers that can be used in vectors, matrices, arrays and @code{data.frames}.
  816. Methods are available for coercion from and to logicals, integers, doubles,
  817. characters and factors as well as many elementwise and summary functions.
  818. Many fast algorithmic operations such as @code{match} and @code{order} support
  819. interactive data exploration and manipulation and optionally leverage
  820. caching.")
  821. (license license:gpl2)))
  822. (define-public r-chorddiag
  823. (package
  824. (name "r-chorddiag")
  825. (version "0.1.3")
  826. (source
  827. (origin
  828. (method git-fetch)
  829. (uri (git-reference
  830. (url "https://github.com/mattflor/chorddiag")
  831. (commit (string-append "v" version))))
  832. (file-name (git-file-name name version))
  833. (sha256
  834. (base32
  835. "1bpy9q861l1hyyiqbx2f7qzp7j7im8bkcfdwgxzk5fm0250p359a"))
  836. ;; Delete minified JavaScript file
  837. (snippet
  838. '(delete-file "inst/htmlwidgets/lib/d3/d3.min.js"))))
  839. (build-system r-build-system)
  840. (arguments
  841. `(#:phases
  842. (modify-phases %standard-phases
  843. (add-after 'unpack 'process-javascript
  844. (lambda* (#:key inputs #:allow-other-keys)
  845. (with-directory-excursion "inst/htmlwidgets/lib/d3"
  846. (let ((source (assoc-ref inputs "d3.v4.js"))
  847. (target "d3.min.js"))
  848. (format #true "Processing ~a --> ~a~%"
  849. source target)
  850. (invoke "esbuild" source "--minify"
  851. (string-append "--outfile=" target)))))))))
  852. (propagated-inputs
  853. (list r-htmlwidgets r-rcolorbrewer))
  854. (native-inputs
  855. `(("esbuild" ,esbuild)
  856. ("r-knitr" ,r-knitr)
  857. ("d3.v4.js"
  858. ,(origin
  859. (method url-fetch)
  860. (uri "https://d3js.org/d3.v4.js")
  861. (sha256
  862. (base32
  863. "0y7byf6kcinfz9ac59jxc4v6kppdazmnyqfav0dm4h550fzfqqlg"))))))
  864. (home-page "https://github.com/mattflor/chorddiag")
  865. (synopsis "Create D3 chord diagram")
  866. (description
  867. "This package provides tools to create interactive chords diagrams via
  868. the D3 Javascript library. Chord diagrams show directed relationships among a
  869. group of entities. This package is based on
  870. @url{http://bl.ocks.org/mbostock/4062006} with some modifications (fading) and
  871. additions (tooltips, bipartite diagram type).")
  872. (license license:gpl3+)))
  873. (define-public r-dichromat
  874. (package
  875. (name "r-dichromat")
  876. (version "2.0-0")
  877. (source
  878. (origin
  879. (method url-fetch)
  880. (uri (cran-uri "dichromat" version))
  881. (sha256
  882. (base32 "1l8db1nk29ccqg3mkbafvfiw0775iq4gapysf88xq2zp6spiw59i"))))
  883. (build-system r-build-system)
  884. (home-page "https://cran.r-project.org/web/packages/dichromat")
  885. (synopsis "Color schemes for dichromats")
  886. (description
  887. "Dichromat collapses red-green or green-blue distinctions to simulate the
  888. effects of different types of color-blindness.")
  889. (license license:gpl2+)))
  890. (define-public r-digest
  891. (package
  892. (name "r-digest")
  893. (version "0.6.29")
  894. (source
  895. (origin
  896. (method url-fetch)
  897. (uri (cran-uri "digest" version))
  898. (sha256
  899. (base32 "1ncwc5fwsylwlcp9vhkhszw8m5sifg74apig2m2pf168lha1yb3r"))))
  900. (build-system r-build-system)
  901. ;; Vignettes require r-knitr, which requires r-digest, so we have to
  902. ;; disable them and the tests.
  903. (arguments
  904. `(#:tests? #f
  905. #:configure-flags (list "--no-build-vignettes")))
  906. (home-page "http://dirk.eddelbuettel.com/code/digest.html")
  907. (synopsis "Create cryptographic hash digests of R objects")
  908. (description
  909. "This package contains an implementation of a function @code{digest()} for
  910. the creation of hash digests of arbitrary R objects (using the md5, sha-1,
  911. sha-256, crc32, xxhash and murmurhash algorithms) permitting easy comparison
  912. of R language objects, as well as a function @code{hmac()} to create hash-based
  913. message authentication code.
  914. Please note that this package is not meant to be deployed for cryptographic
  915. purposes for which more comprehensive (and widely tested) libraries such as
  916. OpenSSL should be used.")
  917. (license license:gpl2+)))
  918. (define-public r-estimability
  919. (package
  920. (name "r-estimability")
  921. (version "1.3")
  922. (source (origin
  923. (method url-fetch)
  924. (uri (cran-uri "estimability" version))
  925. (sha256
  926. (base32
  927. "0cifdaa71spkcxl4db4z884jrya865sg3dhcv4isd8fnzg2pjcd3"))))
  928. (build-system r-build-system)
  929. (home-page "https://cran.r-project.org/web/packages/estimability")
  930. (synopsis "Tools for assessing estimability of linear predictions")
  931. (description "Provides tools for determining estimability of linear
  932. functions of regression coefficients, and @code{epredict} methods that handle
  933. non-estimable cases correctly.")
  934. (license license:gpl2+)))
  935. (define-public r-labeling
  936. (package
  937. (name "r-labeling")
  938. (version "0.4.2")
  939. (source
  940. (origin
  941. (method url-fetch)
  942. (uri (cran-uri "labeling" version))
  943. (sha256
  944. (base32 "0rfikd9gy70b8qz87q9axcwv8nmn9mbxfdwypxi0sghpfs9df8p0"))))
  945. (build-system r-build-system)
  946. (home-page "https://cran.r-project.org/web/packages/labeling")
  947. (synopsis "Axis labeling algorithms")
  948. (description "The labeling package provides a range of axis labeling
  949. algorithms.")
  950. (license license:expat)))
  951. (define-public r-magrittr
  952. (package
  953. (name "r-magrittr")
  954. (version "2.0.2")
  955. (source
  956. (origin
  957. (method url-fetch)
  958. (uri (cran-uri "magrittr" version))
  959. (sha256
  960. (base32 "19k3q76qlri459iyyfgn9gl0w9lnv9v604yhpbc94nx71l6zvrkv"))))
  961. (build-system r-build-system)
  962. ;; knitr needs magrittr
  963. #;
  964. (native-inputs
  965. `(("r-knitr" ,r-knitr)))
  966. (home-page "https://cran.r-project.org/web/packages/magrittr/index.html")
  967. (synopsis "Forward-pipe operator for R")
  968. (description
  969. "Magrittr provides a mechanism for chaining commands with a new
  970. forward-pipe operator, %>%. This operator will forward a value, or the result
  971. of an expression, into the next function call/expression. There is flexible
  972. support for the type of right-hand side expressions. For more information,
  973. see package vignette. To quote Rene Magritte, \"Ceci n'est pas un pipe.\"")
  974. (license license:expat)))
  975. (define-public r-munsell
  976. (package
  977. (name "r-munsell")
  978. (version "0.5.0")
  979. (source
  980. (origin
  981. (method url-fetch)
  982. (uri (cran-uri "munsell" version))
  983. (sha256
  984. (base32 "16g1fzisbpqb15yh3pqf3iia4csppva5dnv1z88x9dg263xskwyh"))))
  985. (build-system r-build-system)
  986. (propagated-inputs
  987. (list r-colorspace))
  988. (home-page "https://cran.r-project.org/web/packages/munsell")
  989. (synopsis "Munsell colour system")
  990. (description
  991. "The Munsell package contains Functions for exploring and using the
  992. Munsell colour system.")
  993. (license license:expat)))
  994. (define-public r-permute
  995. (package
  996. (name "r-permute")
  997. (version "0.9-7")
  998. (source
  999. (origin
  1000. (method url-fetch)
  1001. (uri (cran-uri "permute" version))
  1002. (sha256
  1003. (base32
  1004. "1h4dyhcsv8p3h3qxsy98pib9v79dddvrnq7qx6abkblsazxqzy7g"))))
  1005. (build-system r-build-system)
  1006. (native-inputs (list r-knitr))
  1007. ;; Tests do not run correctly, but running them properly would entail a
  1008. ;; circular dependency with vegan.
  1009. (home-page "https://github.com/gavinsimpson/permute")
  1010. (synopsis "Functions for Generating Restricted Permutations of Data")
  1011. (description
  1012. "This package provides a set of restricted permutation designs for freely
  1013. exchangeable, line transects (time series), spatial grid designs and permutation
  1014. of blocks (groups of samples). @code{permute} also allows split-plot designs,
  1015. in which the whole-plots or split-plots or both can be freely exchangeable.")
  1016. (license license:gpl2+)))
  1017. (define-public r-plyr
  1018. (package
  1019. (name "r-plyr")
  1020. (version "1.8.6")
  1021. (source
  1022. (origin
  1023. (method url-fetch)
  1024. (uri (cran-uri "plyr" version))
  1025. (sha256
  1026. (base32 "11sjjdn146w95s1vsfmmgdls082cbnm1slv98xvyjhsl2mpx4mga"))))
  1027. (build-system r-build-system)
  1028. (propagated-inputs (list r-rcpp))
  1029. (home-page "http://had.co.nz/plyr")
  1030. (synopsis "Tools for Splitting, Applying and Combining Data")
  1031. (description
  1032. "Plyr is a set of tools that solves a common set of problems: you need to
  1033. break a big problem down into manageable pieces, operate on each piece and
  1034. then put all the pieces back together. For example, you might want to fit a
  1035. model to each spatial location or time point in your study, summarise data by
  1036. panels or collapse high-dimensional arrays to simpler summary statistics.")
  1037. (license license:expat)))
  1038. (define-public r-proto
  1039. (package
  1040. (name "r-proto")
  1041. (version "1.0.0")
  1042. (source
  1043. (origin
  1044. (method url-fetch)
  1045. (uri (cran-uri "proto" version))
  1046. (sha256
  1047. (base32 "1l843p8vckjckdhgv37ngv47fga5jzy0n00pmipvp05nnaixk54j"))))
  1048. (build-system r-build-system)
  1049. (home-page "https://github.com/hadley/proto")
  1050. (synopsis "Prototype object-based programming")
  1051. (description
  1052. "Proto is an object oriented system using object-based, also called
  1053. prototype-based, rather than class-based object oriented ideas.")
  1054. (license license:gpl2+)))
  1055. (define-public r-rcolorbrewer
  1056. (package
  1057. (name "r-rcolorbrewer")
  1058. (version "1.1-2")
  1059. (source
  1060. (origin
  1061. (method url-fetch)
  1062. (uri (cran-uri "RColorBrewer" version))
  1063. (sha256
  1064. (base32 "1pfcl8z1pnsssfaaz9dvdckyfnnc6rcq56dhislbf571hhg7isgk"))))
  1065. (build-system r-build-system)
  1066. (home-page "https://cran.r-project.org/web/packages/RColorBrewer")
  1067. (synopsis "ColorBrewer palettes")
  1068. (description
  1069. "This package provides color schemes for maps (and other graphics)
  1070. designed by Cynthia Brewer as described at http://colorbrewer2.org")
  1071. ;; Includes code licensed under bsd-4
  1072. (license license:asl2.0)))
  1073. (define-public r-sendmailr
  1074. (package
  1075. (name "r-sendmailr")
  1076. (version "1.2-1")
  1077. (source
  1078. (origin
  1079. (method url-fetch)
  1080. (uri (cran-uri "sendmailR" version))
  1081. (sha256
  1082. (base32
  1083. "0z7ipywnzgkhfvl4zb2fjwl1xq7b5wib296vn9c9qgbndj6b1zh4"))))
  1084. (properties `((upstream-name . "sendmailR")))
  1085. (build-system r-build-system)
  1086. (propagated-inputs
  1087. (list r-base64enc))
  1088. (home-page
  1089. "https://cran.r-project.org/web/packages/sendmailR")
  1090. (synopsis "Send email using R")
  1091. (description
  1092. "This package contains a simple SMTP client which provides a portable
  1093. solution for sending email, including attachments, from within R.")
  1094. (license license:gpl2+)))
  1095. (define-public r-stringi
  1096. (package
  1097. (name "r-stringi")
  1098. (version "1.7.6")
  1099. (source
  1100. (origin
  1101. (method url-fetch)
  1102. (uri (cran-uri "stringi" version))
  1103. (sha256
  1104. (base32
  1105. "1v0rj5svgvn1mlf69yzm6jm00fxmrsxazs9xymzrf0apxjpxb8qf"))))
  1106. (build-system r-build-system)
  1107. (inputs (list icu4c))
  1108. (native-inputs (list pkg-config))
  1109. (home-page "http://stringi.rexamine.com/")
  1110. (synopsis "Character string processing facilities")
  1111. (description
  1112. "This package allows for fast, correct, consistent, portable, as well as
  1113. convenient character string/text processing in every locale and any native
  1114. encoding. Owing to the use of the ICU library, the package provides R users
  1115. with platform-independent functions known to Java, Perl, Python, PHP, and Ruby
  1116. programmers. Among available features there are: pattern searching
  1117. (e.g. via regular expressions), random string generation, string collation,
  1118. transliteration, concatenation, date-time formatting and parsing, etc.")
  1119. (license license:bsd-3)))
  1120. (define-public r-stringr
  1121. (package
  1122. (name "r-stringr")
  1123. (version "1.4.0")
  1124. (source
  1125. (origin
  1126. (method url-fetch)
  1127. (uri (cran-uri "stringr" version))
  1128. (sha256
  1129. (base32 "1p9ip7p87gbbg4s6d3d392svvzz2b5dqdq2c8ilgvn4s78nlsq47"))))
  1130. (build-system r-build-system)
  1131. (propagated-inputs
  1132. (list r-glue r-magrittr r-stringi))
  1133. (home-page "https://github.com/hadley/stringr")
  1134. (synopsis "Simple, consistent wrappers for common string operations")
  1135. (description
  1136. "Stringr is a consistent, simple and easy to use set of wrappers around
  1137. the fantastic @code{stringi} package. All function and argument names (and
  1138. positions) are consistent, all functions deal with \"NA\"'s and zero length
  1139. vectors in the same way, and the output from one function is easy to feed into
  1140. the input of another.")
  1141. (license license:gpl2+)))
  1142. (define-public r-reshape2
  1143. (package
  1144. (name "r-reshape2")
  1145. (version "1.4.4")
  1146. (source
  1147. (origin
  1148. (method url-fetch)
  1149. (uri (cran-uri "reshape2" version))
  1150. (sha256
  1151. (base32 "1n0jrajpvc8hjkh9z4g8bwq63qy5vy5cgl2pzjardyih4ngcz3fq"))))
  1152. (build-system r-build-system)
  1153. (propagated-inputs
  1154. (list r-plyr r-rcpp r-stringr))
  1155. (home-page "https://github.com/hadley/reshape")
  1156. (synopsis "Flexibly reshape data: a reboot of the \"reshape\" package")
  1157. (description
  1158. "Reshape2 is an R library to flexibly restructure and aggregate data
  1159. using just two functions: melt and dcast (or acast).")
  1160. (license license:expat)))
  1161. (define-public r-ggplot2
  1162. (package
  1163. (name "r-ggplot2")
  1164. (version "3.3.5")
  1165. (source
  1166. (origin
  1167. (method url-fetch)
  1168. (uri (cran-uri "ggplot2" version))
  1169. (sha256
  1170. (base32 "1si46bf9p09qzs208hqffwcb40305p361whmwhc1pwrsmx7jjxdh"))))
  1171. (build-system r-build-system)
  1172. (propagated-inputs
  1173. (list r-digest
  1174. r-glue
  1175. r-gtable
  1176. r-isoband
  1177. r-mass
  1178. r-mgcv
  1179. r-tibble
  1180. r-rlang
  1181. r-scales
  1182. r-svglite ; Needed for 'ggsave'
  1183. r-withr))
  1184. (native-inputs
  1185. (list r-knitr))
  1186. (home-page "https://ggplot2.tidyverse.org")
  1187. (synopsis "Implementation of the grammar of graphics")
  1188. (description
  1189. "Ggplot2 is an implementation of the grammar of graphics in R. It
  1190. combines the advantages of both base and lattice graphics: conditioning and
  1191. shared axes are handled automatically, and you can still build up a plot step
  1192. by step from multiple data sources. It also implements a sophisticated
  1193. multidimensional conditioning system and a consistent interface to map data to
  1194. aesthetic attributes.")
  1195. (license license:gpl2+)))
  1196. (define-public r-ggdendro
  1197. (package
  1198. (name "r-ggdendro")
  1199. (version "0.1.23")
  1200. (source (origin
  1201. (method url-fetch)
  1202. (uri (cran-uri "ggdendro" version))
  1203. (sha256
  1204. (base32
  1205. "1f4fz9llmbpb8gh90aid7dvriadx16xdhsl7832yw4pyqj4fjcrs"))))
  1206. (build-system r-build-system)
  1207. (propagated-inputs
  1208. (list r-ggplot2 r-mass))
  1209. (native-inputs
  1210. (list r-knitr))
  1211. (home-page "https://github.com/andrie/ggdendro")
  1212. (synopsis "Create Dendrograms and Tree Diagrams Using ggplot2")
  1213. (description "This is a set of tools for dendrograms and tree plots using
  1214. ggplot2. The ggplot2 philosophy is to clearly separate data from the
  1215. presentation. Unfortunately the plot method for dendrograms plots directly
  1216. to a plot device with out exposing the data. The ggdendro package resolves
  1217. this by making available functions that extract the dendrogram plot data.
  1218. The package provides implementations for tree, rpart, as well as diana and
  1219. agnes cluster diagrams.")
  1220. (license license:gpl2+)))
  1221. (define-public r-gdtools
  1222. (package
  1223. (name "r-gdtools")
  1224. (version "0.2.4")
  1225. (source
  1226. (origin
  1227. (method url-fetch)
  1228. (uri (cran-uri "gdtools" version))
  1229. (sha256
  1230. (base32
  1231. "0a1hqg5b484ji4g9dy0zi06wn9w7pk6hiy5ljzc1zgj9mbhlr21j"))))
  1232. (build-system r-build-system)
  1233. (native-inputs
  1234. (list pkg-config))
  1235. (inputs
  1236. (list cairo fontconfig freetype zlib))
  1237. (propagated-inputs
  1238. (list r-rcpp r-systemfonts))
  1239. (home-page "https://cran.r-project.org/web/packages/gdtools")
  1240. (synopsis "Utilities for graphical rendering")
  1241. (description
  1242. "The @code{gdtools} package provides functionalities to get font metrics
  1243. and to generate base64 encoded string from raster matrix.")
  1244. (license license:gpl3)))
  1245. (define-public r-svglite
  1246. (package
  1247. (name "r-svglite")
  1248. (version "2.1.0")
  1249. (source
  1250. (origin
  1251. (method url-fetch)
  1252. (uri (cran-uri "svglite" version))
  1253. (sha256
  1254. (base32
  1255. "16wwhfmp9agdz9azslgd8qs77fllhdp6p0m304qfh2p8qy8gah5d"))))
  1256. (build-system r-build-system)
  1257. (inputs
  1258. (list libpng zlib))
  1259. (propagated-inputs
  1260. (list r-cpp11 r-systemfonts))
  1261. (native-inputs
  1262. (list r-knitr))
  1263. (home-page "https://github.com/hadley/svglite")
  1264. (synopsis "SVG graphics device")
  1265. (description
  1266. "@code{svglite} is a graphics device that produces clean
  1267. @dfn{SVG} (Scalable Vector Graphics) output, suitable for use on the web, or
  1268. hand editing. Compared to the built-in @code{svg()}, @code{svglite} is
  1269. considerably faster, produces smaller files, and leaves text as is.")
  1270. (license license:gpl2+)))
  1271. (define-public r-assertthat
  1272. (package
  1273. (name "r-assertthat")
  1274. (version "0.2.1")
  1275. (source (origin
  1276. (method url-fetch)
  1277. (uri (cran-uri "assertthat" version))
  1278. (sha256
  1279. (base32
  1280. "17wy5bdfzg73sg2clisg1k3zyn1adkj59x56m5nwia2k8z67zkw5"))))
  1281. (build-system r-build-system)
  1282. (home-page "https://github.com/hadley/assertthat")
  1283. (synopsis "Easy pre and post assertions")
  1284. (description
  1285. "Assertthat is an extension to stopifnot() that makes it easy to declare
  1286. the pre and post conditions that your code should satisfy, while also
  1287. producing friendly error messages so that your users know what they've done
  1288. wrong.")
  1289. (license license:gpl3+)))
  1290. (define-public r-lazyeval
  1291. (package
  1292. (name "r-lazyeval")
  1293. (version "0.2.2")
  1294. (source (origin
  1295. (method url-fetch)
  1296. (uri (cran-uri "lazyeval" version))
  1297. (sha256
  1298. (base32
  1299. "1m10i059csrcqkcn59a8wspn784alxsq3symzhn24mhhl894346n"))))
  1300. (build-system r-build-system)
  1301. (home-page "https://github.com/hadley/lazyeval")
  1302. (synopsis "Lazy (non-standard) evaluation in R")
  1303. (description
  1304. "This package provides the tools necessary to do non-standard
  1305. evaluation (NSE) in R.")
  1306. (license license:gpl3+)))
  1307. (define-public r-dbi
  1308. (package
  1309. (name "r-dbi")
  1310. (version "1.1.2")
  1311. (source (origin
  1312. (method url-fetch)
  1313. (uri (cran-uri "DBI" version))
  1314. (sha256
  1315. (base32
  1316. "0n2gf5flmcrkad7p0pzsnsgwjl5006yi7lyz9lisqxhw8xykgv2n"))))
  1317. (build-system r-build-system)
  1318. (native-inputs
  1319. (list r-knitr))
  1320. (home-page "https://github.com/rstats-db/DBI")
  1321. (synopsis "R database interface")
  1322. (description
  1323. "The DBI package provides a database interface (DBI) definition for
  1324. communication between R and relational database management systems. All
  1325. classes in this package are virtual and need to be extended by the various
  1326. R/DBMS implementations.")
  1327. (license license:lgpl2.0+)))
  1328. (define-public r-bh
  1329. (package
  1330. (name "r-bh")
  1331. (version "1.78.0-0")
  1332. (source (origin
  1333. (method url-fetch)
  1334. (uri (cran-uri "BH" version))
  1335. (sha256
  1336. (base32
  1337. "1cwc1q8w9d6i81nclgi7lycsnpj0dcbxlv9rdb0f04r0d03rv7iv"))))
  1338. (build-system r-build-system)
  1339. (home-page "https://github.com/eddelbuettel/bh")
  1340. (synopsis "R package providing subset of Boost headers")
  1341. (description
  1342. "This package aims to provide the most useful subset of Boost libraries
  1343. for template use among CRAN packages.")
  1344. (license license:boost1.0)))
  1345. (define-public r-evaluate
  1346. (package
  1347. (name "r-evaluate")
  1348. (version "0.15")
  1349. (source (origin
  1350. (method url-fetch)
  1351. (uri (cran-uri "evaluate" version))
  1352. (sha256
  1353. (base32
  1354. "0pbwj02y2j7r0msa7747ih1p32xm9bcyr8fa7bysfslb199ywnl8"))))
  1355. (build-system r-build-system)
  1356. (home-page "https://github.com/hadley/evaluate")
  1357. (synopsis "Parsing and evaluation tools for R")
  1358. (description
  1359. "This package provides tools that allow you to recreate the parsing,
  1360. evaluation and display of R code, with enough information that you can
  1361. accurately recreate what happens at the command line. The tools can easily be
  1362. adapted for other output formats, such as HTML or LaTeX.")
  1363. (license license:gpl3+)))
  1364. (define-public r-formatr
  1365. (package
  1366. (name "r-formatr")
  1367. (version "1.11")
  1368. (source (origin
  1369. (method url-fetch)
  1370. (uri (cran-uri "formatR" version))
  1371. (sha256
  1372. (base32
  1373. "0353aj975mj0yjc91z76bbfy86y7d5cvlqqyfr93cdng14nnd0dx"))))
  1374. (build-system r-build-system)
  1375. (native-inputs
  1376. (list r-knitr))
  1377. (home-page "https://yihui.org/formatr/")
  1378. (synopsis "Format R code automatically")
  1379. (description
  1380. "This package provides a function to format R source code. Spaces and
  1381. indent will be added to the code automatically, and comments will be preserved
  1382. under certain conditions, so that R code will be more human-readable and tidy.
  1383. There is also a Shiny app as a user interface in this package.")
  1384. (license license:gpl3+)))
  1385. (define-public r-highr
  1386. (package
  1387. (name "r-highr")
  1388. (version "0.9")
  1389. (source (origin
  1390. (method url-fetch)
  1391. (uri (cran-uri "highr" version))
  1392. (sha256
  1393. (base32
  1394. "0kgdv2vf1lz3b5kbal9s83gg6812nw7fvrq0rkyr0v4k1lwi3zxy"))))
  1395. (build-system r-build-system)
  1396. (propagated-inputs
  1397. (list r-xfun))
  1398. ;; We cannot add knitr to the inputs, because highr depends on xfun, which
  1399. ;; is an input to knitr.
  1400. #;
  1401. (native-inputs
  1402. `(("r-knitr" ,r-knitr)))
  1403. (home-page "https://github.com/yihui/highr")
  1404. (synopsis "Syntax highlighting for R source code")
  1405. (description
  1406. "This package provides syntax highlighting for R source code. Currently
  1407. it supports LaTeX and HTML output. Source code of other languages is
  1408. supported via Andre Simon's highlight package.")
  1409. (license license:gpl3+)))
  1410. (define-public r-mime
  1411. (package
  1412. (name "r-mime")
  1413. (version "0.12")
  1414. (source (origin
  1415. (method url-fetch)
  1416. (uri (cran-uri "mime" version))
  1417. (sha256
  1418. (base32
  1419. "0j9qbq9jfsp61h2d0xmb87pa2wi8nhb1h2wih7l5drf1sr8i0059"))))
  1420. (build-system r-build-system)
  1421. (home-page "https://github.com/yihui/mime")
  1422. (synopsis "R package to map filenames to MIME types")
  1423. (description
  1424. "This package guesses the MIME type from a filename extension using the
  1425. data derived from /etc/mime.types in UNIX-type systems.")
  1426. (license license:gpl2)))
  1427. (define-public r-markdown
  1428. (package
  1429. (name "r-markdown")
  1430. (version "1.1")
  1431. (source (origin
  1432. (method url-fetch)
  1433. (uri (cran-uri "markdown" version))
  1434. (sha256
  1435. (base32
  1436. "06zwbrp14bri3470anadd7dvgmw06xf8df6v2pk64wx3f9sd934d"))))
  1437. (build-system r-build-system)
  1438. ;; Skip check phase because the tests require the r-knitr package to be
  1439. ;; installed. This prevents installation failures. Knitr normally
  1440. ;; shouldn't be available since r-markdown is a dependency of the r-knitr
  1441. ;; package.
  1442. (arguments `(#:tests? #f))
  1443. (propagated-inputs
  1444. (list r-mime r-xfun))
  1445. (home-page "https://github.com/rstudio/markdown")
  1446. (synopsis "Markdown rendering for R")
  1447. (description
  1448. "This package provides R bindings to the Sundown Markdown rendering
  1449. library (https://github.com/vmg/sundown). Markdown is a plain-text formatting
  1450. syntax that can be converted to XHTML or other formats.")
  1451. (license license:gpl2)))
  1452. (define-public r-yaml
  1453. (package
  1454. (name "r-yaml")
  1455. (version "2.3.5")
  1456. (source (origin
  1457. (method url-fetch)
  1458. (uri (cran-uri "yaml" version))
  1459. (sha256
  1460. (base32
  1461. "0h2ixd95ww12ir13fdzbvjq4lsz6l8hmgv4bbsi89qd0ah2nrpry"))))
  1462. (build-system r-build-system)
  1463. (home-page "https://cran.r-project.org/web/packages/yaml/")
  1464. (synopsis "Methods to convert R data to YAML and back")
  1465. (description
  1466. "This package implements the libyaml YAML 1.1 parser and
  1467. emitter (http://pyyaml.org/wiki/LibYAML) for R.")
  1468. (license license:bsd-3)))
  1469. (define-public r-knitr
  1470. (package
  1471. (name "r-knitr")
  1472. (version "1.37")
  1473. (source (origin
  1474. (method url-fetch)
  1475. (uri (cran-uri "knitr" version))
  1476. (sha256
  1477. (base32
  1478. "0qyp78v3hz4qimlc3w4hj5dzp44n2w085ay0l1zvxsxs9142mk9r"))))
  1479. (build-system r-build-system)
  1480. (propagated-inputs
  1481. (list r-evaluate r-highr r-stringr r-xfun r-yaml))
  1482. (home-page "https://yihui.org/knitr/")
  1483. (synopsis "General-purpose package for dynamic report generation in R")
  1484. (description
  1485. "This package provides a general-purpose tool for dynamic report
  1486. generation in R using Literate Programming techniques.")
  1487. ;; The code is released under any version of the GPL. As it is used by
  1488. ;; r-markdown which is available under GPLv2 only, we have chosen GPLv2+
  1489. ;; here.
  1490. (license license:gpl2+)))
  1491. (define-public r-knitrbootstrap
  1492. (package
  1493. (name "r-knitrbootstrap")
  1494. (version "1.0.2")
  1495. (source
  1496. (origin
  1497. (method url-fetch)
  1498. (uri (cran-uri "knitrBootstrap" version))
  1499. (sha256
  1500. (base32
  1501. "1aj60j7f0gcs120fdrnfbnb7vk7lfn1phil0mghg6a5zldz4cqs3"))))
  1502. (properties `((upstream-name . "knitrBootstrap")))
  1503. (build-system r-build-system)
  1504. (propagated-inputs
  1505. (list r-knitr r-rmarkdown r-markdown))
  1506. (home-page "https://github.com/jimhester/knitrBootstrap")
  1507. (synopsis "Knitr bootstrap framework")
  1508. (description
  1509. "This package provides a framework to create Bootstrap 3 HTML reports
  1510. from knitr Rmarkdown.")
  1511. (license license:expat)))
  1512. (define-public r-microbenchmark
  1513. (package
  1514. (name "r-microbenchmark")
  1515. (version "1.4.9")
  1516. (source (origin
  1517. (method url-fetch)
  1518. (uri (cran-uri "microbenchmark" version))
  1519. (sha256
  1520. (base32
  1521. "1lpzpffnjiwnxxl0jhrvyj88fvxqksnpccbpq953xwqf6ypjqga4"))))
  1522. (build-system r-build-system)
  1523. (home-page "https://cran.r-project.org/web/packages/microbenchmark/")
  1524. (synopsis "Accurate timing functions for R")
  1525. (description
  1526. "This package provides infrastructure to accurately measure and compare
  1527. the execution time of R expressions.")
  1528. (license license:bsd-2)))
  1529. (define-public r-pryr
  1530. (package
  1531. (name "r-pryr")
  1532. (version "0.1.5")
  1533. (source (origin
  1534. (method url-fetch)
  1535. (uri (cran-uri "pryr" version))
  1536. (sha256
  1537. (base32
  1538. "02vp1y7zhv22id43j5c0gdcgn9171dyypqp8rqrlc3w5a7n565kv"))))
  1539. (build-system r-build-system)
  1540. (propagated-inputs
  1541. (list r-codetools r-lobstr r-rcpp r-stringr))
  1542. (home-page "https://github.com/hadley/pryr")
  1543. (synopsis "Tools for computing on the R language")
  1544. (description
  1545. "This package provides useful tools to pry back the covers of R and
  1546. understand the language at a deeper level.")
  1547. (license license:gpl2)))
  1548. (define-public r-memoise
  1549. (package
  1550. (name "r-memoise")
  1551. (version "2.0.1")
  1552. (source (origin
  1553. (method url-fetch)
  1554. (uri (cran-uri "memoise" version))
  1555. (sha256
  1556. (base32
  1557. "1srdzv2bp0splislrabmf1sfbqfi3hn189nq7kxhgjn8k3p38l7q"))))
  1558. (build-system r-build-system)
  1559. (propagated-inputs
  1560. (list r-cachem r-rlang))
  1561. (home-page "https://github.com/hadley/memoise")
  1562. (synopsis "Memoise functions for R")
  1563. (description
  1564. "This R package caches the results of a function so that when
  1565. you call it again with the same arguments it returns the pre-computed value.")
  1566. (license license:expat)))
  1567. (define-public r-crayon
  1568. (package
  1569. (name "r-crayon")
  1570. (version "1.5.0")
  1571. (source (origin
  1572. (method url-fetch)
  1573. (uri (cran-uri "crayon" version))
  1574. (sha256
  1575. (base32
  1576. "0m3rckps0c8v14h9vqnr81acv0az1jqwlsradcbkb2ndvnpjq4j4"))))
  1577. (build-system r-build-system)
  1578. (home-page "https://github.com/gaborcsardi/crayon")
  1579. (synopsis "Colored terminal output for R")
  1580. (description
  1581. "Colored terminal output on terminals that support ANSI color and
  1582. highlight codes. It also works in Emacs ESS. ANSI color support is
  1583. automatically detected. Colors and highlighting can be combined and nested.
  1584. New styles can also be created easily. This package was inspired by the
  1585. \"chalk\" JavaScript project.")
  1586. (license license:expat)))
  1587. (define-public r-praise
  1588. (package
  1589. (name "r-praise")
  1590. (version "1.0.0")
  1591. (source
  1592. (origin
  1593. (method url-fetch)
  1594. (uri (cran-uri "praise" version))
  1595. (sha256
  1596. (base32
  1597. "1gfyypnvmih97p2r0php9qa39grzqpsdbq5g0fdsbpq5zms5w0sw"))))
  1598. (build-system r-build-system)
  1599. (home-page "https://github.com/gaborcsardi/praise")
  1600. (synopsis "Functions to praise users")
  1601. (description
  1602. "This package provides template functions to assist in building friendly
  1603. R packages that praise their users.")
  1604. (license license:expat)))
  1605. (define-public r-testthat
  1606. (package
  1607. (name "r-testthat")
  1608. (version "3.1.2")
  1609. (source (origin
  1610. (method url-fetch)
  1611. (uri (cran-uri "testthat" version))
  1612. (sha256
  1613. (base32
  1614. "0ndnmv3gbhlsyqya382wqfkkhlrgpdjmh7mymsv6ja52ihbachgd"))))
  1615. (build-system r-build-system)
  1616. (propagated-inputs
  1617. (list r-brio
  1618. r-callr
  1619. r-cli
  1620. r-crayon
  1621. r-desc
  1622. r-digest
  1623. r-ellipsis
  1624. r-evaluate
  1625. r-jsonlite
  1626. r-lifecycle
  1627. r-magrittr
  1628. r-pkgload
  1629. r-praise
  1630. r-processx
  1631. r-ps
  1632. r-r6
  1633. r-rlang
  1634. r-waldo
  1635. r-withr))
  1636. (native-inputs
  1637. (list r-knitr))
  1638. (home-page "https://github.com/hadley/testthat")
  1639. (synopsis "Unit testing for R")
  1640. (description
  1641. "This package provides a unit testing system for R designed to be fun,
  1642. flexible and easy to set up.")
  1643. (license license:expat)))
  1644. (define-public r-r6
  1645. (package
  1646. (name "r-r6")
  1647. (version "2.5.1")
  1648. (source (origin
  1649. (method url-fetch)
  1650. (uri (cran-uri "R6" version))
  1651. (sha256
  1652. (base32
  1653. "0j5z0b0myzjyyykk310xsa9n2mcm9bz8yqbq4xgz2yzdq8lvv4ld"))))
  1654. (build-system r-build-system)
  1655. (home-page "https://github.com/wch/R6/")
  1656. (synopsis "Classes with reference semantics in R")
  1657. (description
  1658. "The R6 package allows the creation of classes with reference semantics,
  1659. similar to R's built-in reference classes. Compared to reference classes, R6
  1660. classes are simpler and lighter-weight, and they are not built on S4 classes
  1661. so they do not require the methods package. These classes allow public and
  1662. private members, and they support inheritance, even when the classes are
  1663. defined in different packages.")
  1664. (license license:expat)))
  1665. (define-public r-rlang
  1666. (package
  1667. (name "r-rlang")
  1668. (version "1.0.2")
  1669. (source (origin
  1670. (method url-fetch)
  1671. (uri (cran-uri "rlang" version))
  1672. (sha256
  1673. (base32
  1674. "1k6pzl2x80pycpllvd8n1k62h5cfdwc0hsdwvbicrcxhdwz7rs4d"))))
  1675. (build-system r-build-system)
  1676. (home-page "http://rlang.tidyverse.org")
  1677. (synopsis "Functions for base types, core R and Tidyverse features")
  1678. (description "This package provides a toolbox for working with base types,
  1679. core R features like the condition system, and core @code{Tidyverse} features
  1680. like tidy evaluation.")
  1681. (license license:gpl3)))
  1682. (define-public r-tibble
  1683. (package
  1684. (name "r-tibble")
  1685. (version "3.1.6")
  1686. (source
  1687. (origin
  1688. (method url-fetch)
  1689. (uri (cran-uri "tibble" version))
  1690. (sha256
  1691. (base32
  1692. "14l2i6ri3v5y0h8g0ahc4kz0pdqsp5yabxk2w8wavss6y44xjcsv"))))
  1693. (build-system r-build-system)
  1694. (propagated-inputs
  1695. (list r-ellipsis
  1696. r-fansi
  1697. r-lifecycle
  1698. r-magrittr
  1699. r-pkgconfig
  1700. r-pillar
  1701. r-rlang
  1702. r-vctrs))
  1703. (native-inputs
  1704. (list r-knitr))
  1705. (home-page "https://github.com/hadley/tibble")
  1706. (synopsis "Simple data frames")
  1707. (description
  1708. "This package provides a @code{tbl_df} class that offers better checking
  1709. and printing capabilities than traditional data frames.")
  1710. (license license:expat)))
  1711. (define-public r-dplyr
  1712. (package
  1713. (name "r-dplyr")
  1714. (version "1.0.8")
  1715. (source (origin
  1716. (method url-fetch)
  1717. (uri (cran-uri "dplyr" version))
  1718. (sha256
  1719. (base32
  1720. "0xb04ckp29pva1h2rfahqhmk9gcwp2dbbx3av8ip40v7dnha6siv"))))
  1721. (build-system r-build-system)
  1722. (propagated-inputs
  1723. (list r-generics
  1724. r-glue
  1725. r-lifecycle
  1726. r-magrittr
  1727. r-pillar
  1728. r-r6
  1729. r-rlang
  1730. r-tibble
  1731. r-tidyselect
  1732. r-vctrs))
  1733. (native-inputs
  1734. (list r-knitr))
  1735. (home-page "https://github.com/hadley/dplyr")
  1736. (synopsis "Tools for working with data frames in R")
  1737. (description
  1738. "dplyr is the next iteration of plyr. It is focused on tools for
  1739. working with data frames. It has three main goals: 1) identify the most
  1740. important data manipulation tools needed for data analysis and make them easy
  1741. to use in R; 2) provide fast performance for in-memory data by writing key
  1742. pieces of code in C++; 3) use the same code interface to work with data no
  1743. matter where it is stored, whether in a data frame, a data table or
  1744. database.")
  1745. (license license:expat)))
  1746. (define-public r-dbplyr
  1747. (package
  1748. (name "r-dbplyr")
  1749. (version "2.1.1")
  1750. (source
  1751. (origin
  1752. (method url-fetch)
  1753. (uri (cran-uri "dbplyr" version))
  1754. (sha256
  1755. (base32
  1756. "025wqpmxdhzblb0pf58m3qh5h6bf5x8qvkf47vyl1cjsp13wz95b"))))
  1757. (build-system r-build-system)
  1758. (propagated-inputs
  1759. (list r-assertthat
  1760. r-blob
  1761. r-dbi
  1762. r-dplyr
  1763. r-ellipsis
  1764. r-glue
  1765. r-lifecycle
  1766. r-magrittr
  1767. r-purrr
  1768. r-r6
  1769. r-rlang
  1770. r-tibble
  1771. r-tidyselect
  1772. r-vctrs
  1773. r-withr))
  1774. (native-inputs
  1775. (list r-knitr))
  1776. (home-page "https://github.com/tidyverse/dbplyr")
  1777. (synopsis "Dplyr back end for databases")
  1778. (description
  1779. "This package provides a dplyr back end for databases that allows you to
  1780. work with remote database tables as if they are in-memory data frames. Basic
  1781. features works with any database that has a @code{DBI} back end; more advanced
  1782. features require SQL translation to be provided by the package author.")
  1783. (license license:expat)))
  1784. (define-public r-acepack
  1785. (package
  1786. (name "r-acepack")
  1787. (version "1.4.1")
  1788. (source
  1789. (origin
  1790. (method url-fetch)
  1791. (uri (cran-uri "acepack" version))
  1792. (sha256
  1793. (base32
  1794. "1f98rpfjmhd92rdc3j004plyfpjailz6j0ycysbac0kgj83haxc2"))))
  1795. (build-system r-build-system)
  1796. (inputs
  1797. (list gfortran))
  1798. (home-page "https://cran.r-project.org/web/packages/acepack")
  1799. (synopsis "Functions for regression transformations")
  1800. (description
  1801. "This package provides ACE and AVAS methods for choosing regression
  1802. transformations.")
  1803. (license license:expat)))
  1804. (define-public r-formula
  1805. (package
  1806. (name "r-formula")
  1807. (version "1.2-4")
  1808. (source
  1809. (origin
  1810. (method url-fetch)
  1811. (uri (cran-uri "Formula" version))
  1812. (sha256
  1813. (base32
  1814. "1bsw282i5m8rlirbhz7hqvf25zbxschk7yrp152whbzdnmry6w6b"))))
  1815. (properties `((upstream-name . "Formula")))
  1816. (build-system r-build-system)
  1817. (home-page "https://cran.r-project.org/web/packages/Formula")
  1818. (synopsis "Extended model formulas")
  1819. (description
  1820. "This package provides a new class @code{Formula}, which extends the base
  1821. class @code{formula}. It supports extended formulas with multiple parts of
  1822. regressors on the right-hand side and/or multiple responses on the left-hand
  1823. side.")
  1824. (license (list license:gpl2+ license:gpl3+))))
  1825. (define-public r-locfit
  1826. (package
  1827. (name "r-locfit")
  1828. (version "1.5-9.5")
  1829. (source
  1830. (origin
  1831. (method url-fetch)
  1832. (uri (cran-uri "locfit" version))
  1833. (sha256
  1834. (base32
  1835. "08yywswywmvyys8380576n43h3xyiviq1p2392zcivlbknnjp7zx"))))
  1836. (build-system r-build-system)
  1837. (propagated-inputs
  1838. (list r-lattice))
  1839. (home-page "https://cran.r-project.org/web/packages/locfit")
  1840. (synopsis "Local regression, likelihood and density estimation")
  1841. (description
  1842. "This package provides functions used for local regression, likelihood
  1843. and density estimation.")
  1844. (license (list license:gpl2+ license:gpl3+))))
  1845. (define-public r-chron
  1846. (package
  1847. (name "r-chron")
  1848. (version "2.3-56")
  1849. (source (origin
  1850. (method url-fetch)
  1851. (uri (cran-uri "chron" version))
  1852. (sha256
  1853. (base32
  1854. "0p9zz96jfyf139924hdwkzhr8knkjvx6547ac53rknm3a6wwngl6"))))
  1855. (build-system r-build-system)
  1856. (home-page "https://cran.r-project.org/web/packages/chron")
  1857. (synopsis "Chronological R objects which can handle dates and times")
  1858. (description
  1859. "This package provides chronological R objects which can handle dates and
  1860. times.")
  1861. (license license:gpl2)))
  1862. (define-public r-data-table
  1863. (package
  1864. (name "r-data-table")
  1865. (version "1.14.2")
  1866. (source (origin
  1867. (method url-fetch)
  1868. (uri (cran-uri "data.table" version))
  1869. (sha256
  1870. (base32
  1871. "0arx5wna0sh0vf5q8rjhh8nqdmnvg2pdpbhljl9l0x4kwm8vjhgp"))))
  1872. (build-system r-build-system)
  1873. (inputs
  1874. (list zlib))
  1875. (native-inputs
  1876. (list pkg-config r-knitr))
  1877. (home-page "https://github.com/Rdatatable/data.table/wiki")
  1878. (synopsis "Enhanced version of data.frame R object")
  1879. (description
  1880. "The R package @code{data.table} is an extension of @code{data.frame}
  1881. providing functions for fast aggregation of large data (e.g. 100GB in RAM),
  1882. fast ordered joins, fast add/modify/delete of columns by group, column listing
  1883. and fast file reading.")
  1884. (license license:gpl3+)))
  1885. (define-public r-xtable
  1886. (package
  1887. (name "r-xtable")
  1888. (version "1.8-4")
  1889. (source
  1890. (origin
  1891. (method url-fetch)
  1892. (uri (cran-uri "xtable" version))
  1893. (sha256
  1894. (base32
  1895. "077xfm0gphvhsay75amd9v90zk57kjgrrlgih04fyrbqqblc1gjs"))))
  1896. (build-system r-build-system)
  1897. (native-inputs
  1898. (list r-knitr)) ; for vignettes
  1899. (home-page "http://xtable.r-forge.r-project.org/")
  1900. (synopsis "Export R tables to LaTeX or HTML")
  1901. (description
  1902. "This package provides tools to export R data as LaTeX and HTML tables.")
  1903. (license license:gpl2+)))
  1904. (define-public python-patsy
  1905. (package
  1906. (name "python-patsy")
  1907. (version "0.5.2")
  1908. (source (origin
  1909. (method url-fetch)
  1910. (uri (pypi-uri "patsy" version))
  1911. (sha256
  1912. (base32
  1913. "17dn72519gvwifw3i8mzwlslxmxkl8ihzfrxg1iblsk70iwdwlsh"))))
  1914. (build-system python-build-system)
  1915. (arguments
  1916. `(#:phases
  1917. (modify-phases %standard-phases
  1918. (replace 'check
  1919. (lambda* (#:key tests? #:allow-other-keys)
  1920. (when tests? (invoke "pytest" "-vv")))))))
  1921. (propagated-inputs
  1922. (list python-numpy python-scipy python-six))
  1923. (native-inputs
  1924. (list python-pytest))
  1925. (home-page "https://github.com/pydata/patsy")
  1926. (synopsis "Describe statistical models and build design matrices")
  1927. (description
  1928. "Patsy is a Python package for describing statistical models and for
  1929. building design matrices.")
  1930. ;; The majority of the code is distributed under BSD-2. The module
  1931. ;; patsy.compat contains code derived from the Python standard library,
  1932. ;; and is covered by the PSFL.
  1933. (license (list license:bsd-2 license:psfl))))
  1934. (define-public python2-patsy
  1935. (package-with-python2 python-patsy))
  1936. (define-public python-statsmodels
  1937. (package
  1938. (name "python-statsmodels")
  1939. (version "0.13.1")
  1940. (source
  1941. (origin
  1942. (method url-fetch)
  1943. (uri (pypi-uri "statsmodels" version))
  1944. (sha256
  1945. (base32 "0sbsyxgpzhys5padhkhrj71z4i1q41sm938pz0x8ff6jjvcchvh0"))
  1946. (modules '((guix build utils)))
  1947. (snippet
  1948. '(begin
  1949. (for-each delete-file (find-files "." "\\.c$"))))))
  1950. (build-system python-build-system)
  1951. (arguments
  1952. `(;; The test suite is very large and rather brittle. Tests often fail
  1953. ;; because of minor changes in dependencies that upstream hasn't fixed
  1954. ;; in a new release.
  1955. #:tests? #f
  1956. #:phases
  1957. (modify-phases %standard-phases
  1958. (add-after 'unpack 'set-matplotlib-backend-to-agg
  1959. (lambda _
  1960. ;; Set the matplotlib backend to Agg to avoid problems using the
  1961. ;; GTK backend without a display.
  1962. (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
  1963. '("statsmodels/tsa/vector_ar/tests/test_var.py"
  1964. "statsmodels/duration/tests/test_survfunc.py"))
  1965. (("import matplotlib\\.pyplot as plt" line)
  1966. (string-append "import matplotlib;matplotlib.use('Agg');"
  1967. line)))
  1968. #t)))))
  1969. (propagated-inputs
  1970. (list python-numpy python-scipy python-pandas python-patsy
  1971. python-matplotlib))
  1972. (native-inputs
  1973. (list python-cython python-nose python-sphinx))
  1974. (home-page "http://statsmodels.sourceforge.net/")
  1975. (synopsis "Statistical modeling and econometrics in Python")
  1976. (description
  1977. "Statsmodels is a Python package that provides a complement to scipy for
  1978. statistical computations including descriptive statistics and estimation and
  1979. inference for statistical models.")
  1980. (license license:bsd-3)))
  1981. (define-public python2-statsmodels
  1982. (let ((stats (package-with-python2 python-statsmodels)))
  1983. (package/inherit stats
  1984. ;; Version 0.11.1 and later does not work with Python 2. It may build
  1985. ;; fine but loading modules fails.
  1986. (version "0.9.0")
  1987. (source
  1988. (origin
  1989. (method url-fetch)
  1990. (uri (pypi-uri "statsmodels" version))
  1991. (sha256
  1992. (base32
  1993. "0fxs8a7sp4d7jvqlm36yi45i2d28kjfvraf9q8i9jr1chhxgjqb4"))))
  1994. (propagated-inputs
  1995. `(("python2-pytz" ,python2-pytz)
  1996. ("python2-numpy" ,python2-numpy)
  1997. ("python2-scipy" ,python2-scipy)
  1998. ("python2-pandas" ,python2-pandas)
  1999. ("python2-patsy" ,python2-patsy)
  2000. ("python2-matplotlib" ,python2-matplotlib))))))
  2001. (define-public r-coda
  2002. (package
  2003. (name "r-coda")
  2004. (version "0.19-4")
  2005. (source (origin
  2006. (method url-fetch)
  2007. (uri (cran-uri "coda" version))
  2008. (sha256
  2009. (base32
  2010. "13z5dwfpnyyhpsbpg4xr9g5c1685jhqj90f4x4qkcykr6kykqba2"))))
  2011. (build-system r-build-system)
  2012. (propagated-inputs
  2013. (list r-lattice))
  2014. (home-page "https://cran.r-project.org/web/packages/coda")
  2015. (synopsis "This is a package for Output Analysis and Diagnostics for MCMC")
  2016. (description "This package provides functions for summarizing and plotting
  2017. the output from Markov Chain Monte Carlo (MCMC) simulations, as well as
  2018. diagnostic tests of convergence to the equilibrium distribution of the Markov
  2019. chain.")
  2020. (license license:gpl2+)))
  2021. (define-public r-ade4
  2022. (package
  2023. (name "r-ade4")
  2024. (version "1.7-18")
  2025. (source
  2026. (origin
  2027. (method url-fetch)
  2028. (uri (cran-uri "ade4" version))
  2029. (sha256
  2030. (base32
  2031. "09f5kh2mwygqpnvf53k0r54k0cvaafxm9x4nm819gwv05k2g9dpc"))))
  2032. (build-system r-build-system)
  2033. (propagated-inputs
  2034. (list r-mass r-pixmap r-sp))
  2035. (home-page "http://pbil.univ-lyon1.fr/ADE-4")
  2036. (synopsis "Multivariate data analysis and graphical display")
  2037. (description
  2038. "The ade4 package contains data analysis functions to analyze ecological
  2039. and environmental data in the framework of Euclidean exploratory methods.")
  2040. (license license:gpl2+)))
  2041. (define-public r-xml2
  2042. (package
  2043. (name "r-xml2")
  2044. (version "1.3.3")
  2045. (source
  2046. (origin
  2047. (method url-fetch)
  2048. (uri (cran-uri "xml2" version))
  2049. (sha256
  2050. (base32
  2051. "138w7hb487al9cbahmnk5rhi23k8a9g7nk7s5dyxd3k1646rqknb"))))
  2052. (build-system r-build-system)
  2053. (inputs
  2054. (list libxml2 zlib))
  2055. (native-inputs
  2056. (list pkg-config r-knitr))
  2057. (home-page "https://github.com/hadley/xml2")
  2058. (synopsis "Parse XML with R")
  2059. (description
  2060. "This package provides a simple, consistent interface to working with XML
  2061. files in R. It is built on top of the libxml2 C library.")
  2062. (license license:gpl2+)))
  2063. (define-public r-multitaper
  2064. (package
  2065. (name "r-multitaper")
  2066. (version "1.0-15")
  2067. (source
  2068. (origin
  2069. (method url-fetch)
  2070. (uri (cran-uri "multitaper" version))
  2071. (sha256
  2072. (base32
  2073. "1gm3wr8xqpqiby7q1dr3zxim77v0bvvrqi0hlazf5g3gnkrp2zc3"))))
  2074. (build-system r-build-system)
  2075. (native-inputs
  2076. (list gfortran))
  2077. (home-page "https://github.com/wesleyburr/multitaper/")
  2078. (synopsis "Multitaper spectral analysis tools")
  2079. (description
  2080. "This package implements multitaper spectral estimation
  2081. techniques using prolate spheroidal sequences (Slepians) and sine
  2082. tapers for time series analysis. It includes an adaptive weighted
  2083. multitaper spectral estimate, a coherence estimate, Thomson's Harmonic
  2084. F-test, and complex demodulation. The Slepians sequences are
  2085. generated efficiently using a tridiagonal matrix solution, and
  2086. jackknifed confidence intervals are available for most estimates.")
  2087. (license license:gpl2+)))
  2088. (define-public r-rversions
  2089. (package
  2090. (name "r-rversions")
  2091. (version "2.1.1")
  2092. (source (origin
  2093. (method url-fetch)
  2094. (uri (cran-uri "rversions" version))
  2095. (sha256
  2096. (base32
  2097. "1cbwwbz8lqx2n33xr4q904whvld22s63rpyy1nn93395l7ssrakr"))))
  2098. (build-system r-build-system)
  2099. (propagated-inputs
  2100. (list r-curl r-xml2))
  2101. (home-page "https://github.com/metacran/rversions")
  2102. (synopsis "Query R versions, including 'r-release' and 'r-oldrel'")
  2103. (description
  2104. "This package provides functions to query the main R repository to find
  2105. the versions that @code{r-release} and @code{r-oldrel} refer to, and also all
  2106. previous R versions and their release dates.")
  2107. (license license:expat)))
  2108. (define-public r-whisker
  2109. (package
  2110. (name "r-whisker")
  2111. (version "0.4")
  2112. (source (origin
  2113. (method url-fetch)
  2114. (uri (cran-uri "whisker" version))
  2115. (sha256
  2116. (base32
  2117. "1a7vz0dk95xfjvi38wbpw8vmf5qn3g8p490msz2rw0piwidmk1ks"))))
  2118. (build-system r-build-system)
  2119. (home-page "https://github.com/edwindj/whisker")
  2120. (synopsis "Logicless mustache templating for R")
  2121. (description
  2122. "This package provides logicless templating, with a syntax that is not
  2123. limited to R.")
  2124. (license license:gpl3+)))
  2125. (define-public r-backports
  2126. (package
  2127. (name "r-backports")
  2128. (version "1.4.1")
  2129. (source
  2130. (origin
  2131. (method url-fetch)
  2132. (uri (cran-uri "backports" version))
  2133. (sha256
  2134. (base32
  2135. "0x144hij0rzhrxdq3k5ph8fk7pdgl1avjca25j4mlpmhzdckqp44"))))
  2136. (build-system r-build-system)
  2137. (home-page "https://cran.r-project.org/web/packages/backports")
  2138. (synopsis "Reimplementations of functions introduced since R 3.0.0")
  2139. (description
  2140. "Provides implementations of functions which have been introduced in R
  2141. since version 3.0.0. The backports are conditionally exported which results
  2142. in R resolving the function names to the version shipped with R (if available)
  2143. and uses the implemented backports as fallback. This way package developers
  2144. can make use of the new functions without worrying about the minimum required
  2145. R version.")
  2146. (license license:gpl2+)))
  2147. (define-public r-checkmate
  2148. (package
  2149. (name "r-checkmate")
  2150. (version "2.0.0")
  2151. (source
  2152. (origin
  2153. (method url-fetch)
  2154. (uri (cran-uri "checkmate" version))
  2155. (sha256
  2156. (base32
  2157. "193gkifr9spp0x0rwnjq1spdhjkfkh4mv27iklskcj604075phhd"))))
  2158. (build-system r-build-system)
  2159. (propagated-inputs
  2160. (list r-backports))
  2161. (home-page "https://github.com/mllg/checkmate")
  2162. (synopsis "Fast and versatile argument checks")
  2163. (description
  2164. "This package provides tests and assertions to perform frequent argument
  2165. checks. A substantial part of the package was written in C to minimize any
  2166. worries about execution time overhead.")
  2167. (license license:bsd-3)))
  2168. (define-public r-bbmisc
  2169. (package
  2170. (name "r-bbmisc")
  2171. (version "1.12")
  2172. (source
  2173. (origin
  2174. (method url-fetch)
  2175. (uri (cran-uri "BBmisc" version))
  2176. (sha256
  2177. (base32
  2178. "0gh5f342rwra79i7imv50x8vrhd2zkifm7khb0yv3ndpd4zn62lh"))))
  2179. (properties `((upstream-name . "BBmisc")))
  2180. (build-system r-build-system)
  2181. (propagated-inputs
  2182. (list r-checkmate r-data-table))
  2183. (home-page "https://github.com/berndbischl/BBmisc")
  2184. (synopsis "Miscellaneous functions for R package development")
  2185. (description
  2186. "This package provides miscellaneous helper functions for the development
  2187. of R packages.")
  2188. (license license:bsd-3)))
  2189. (define-public r-fail
  2190. (package
  2191. (name "r-fail")
  2192. (version "1.3")
  2193. (source
  2194. (origin
  2195. (method url-fetch)
  2196. (uri (cran-uri "fail" version))
  2197. (sha256
  2198. (base32
  2199. "0vfm6kmpmgsamda5p0sl771kbnsscan31l2chzssyw93kwmams7d"))))
  2200. (build-system r-build-system)
  2201. (propagated-inputs
  2202. (list r-bbmisc r-checkmate))
  2203. (home-page "https://github.com/mllg/fail")
  2204. (synopsis "File abstraction interface layer (FAIL)")
  2205. (description
  2206. "This package provides a more comfortable interface to work with R data
  2207. or source files in a key-value fashion.")
  2208. (license license:bsd-3)))
  2209. (define-public r-batchjobs
  2210. (package
  2211. (name "r-batchjobs")
  2212. (version "1.8")
  2213. (source
  2214. (origin
  2215. (method url-fetch)
  2216. (uri (cran-uri "BatchJobs" version))
  2217. (sha256
  2218. (base32
  2219. "1zz4sspj596pijxlz321g0jy2rg9ki83j6fihbwisjwr66p2vk1m"))))
  2220. (properties `((upstream-name . "BatchJobs")))
  2221. (build-system r-build-system)
  2222. (propagated-inputs
  2223. (list r-backports
  2224. r-bbmisc
  2225. r-brew
  2226. r-checkmate
  2227. r-data-table
  2228. r-dbi
  2229. r-digest
  2230. r-rsqlite
  2231. r-sendmailr
  2232. r-stringi))
  2233. (home-page "https://github.com/tudo-r/BatchJobs")
  2234. (synopsis "Batch computing with R")
  2235. (description
  2236. "This package provides @code{Map}, @code{Reduce} and @code{Filter}
  2237. variants to generate jobs on batch computing systems like PBS/Torque, LSF,
  2238. SLURM and Sun Grid Engine. Multicore and SSH systems are also supported.")
  2239. (license license:bsd-2)))
  2240. (define-public r-brew
  2241. (package
  2242. (name "r-brew")
  2243. (version "1.0-7")
  2244. (source (origin
  2245. (method url-fetch)
  2246. (uri (cran-uri "brew" version))
  2247. (sha256
  2248. (base32
  2249. "0vp7d628j6zzxhh6xfw5jlkv7wh6z2l3snbwjgv7jd56vk0mkf1q"))))
  2250. (build-system r-build-system)
  2251. (home-page "https://cran.r-project.org/web/packages/brew")
  2252. (synopsis "Templating framework for report generation")
  2253. (description
  2254. "The brew package implements a templating framework for mixing text and R
  2255. code for report generation. The template syntax is similar to PHP, Ruby's erb
  2256. module, Java Server Pages, and Python's psp module.")
  2257. (license license:gpl2+)))
  2258. (define-public r-desc
  2259. (package
  2260. (name "r-desc")
  2261. (version "1.4.1")
  2262. (source
  2263. (origin
  2264. (method url-fetch)
  2265. (uri (cran-uri "desc" version))
  2266. (sha256
  2267. (base32
  2268. "0m3g5m0g08k674zh4lq0ihmqiwz8jpsfqrdwfqp5p4ngxi8vp7lg"))))
  2269. (build-system r-build-system)
  2270. (propagated-inputs
  2271. (list r-cli r-r6 r-rprojroot))
  2272. (home-page "https://github.com/r-pkgs/desc")
  2273. (synopsis "Manipulate DESCRIPTION Files")
  2274. (description
  2275. "This package provides tools to read, write, create, and manipulate
  2276. DESCRIPTION files. It is intended for packages that create or manipulate
  2277. other packages.")
  2278. (license license:expat)))
  2279. (define-public r-commonmark
  2280. (package
  2281. (name "r-commonmark")
  2282. (version "1.8.0")
  2283. (source
  2284. (origin
  2285. (method url-fetch)
  2286. (uri (cran-uri "commonmark" version))
  2287. (sha256
  2288. (base32
  2289. "0s765c650id19ygx57bsjsw93fwxywmp50zid671bkxi6wlyf1vx"))))
  2290. (build-system r-build-system)
  2291. (home-page "https://cran.r-project.org/web/packages/commonmark")
  2292. (synopsis "CommonMark and Github Markdown Rendering in R")
  2293. (description
  2294. "The CommonMark specification defines a rationalized version of markdown
  2295. syntax. This package uses the @code{cmark} reference implementation for
  2296. converting markdown text into various formats including HTML, LaTeX and groff
  2297. man. In addition, it exposes the markdown parse tree in XML format. The latest
  2298. version of this package also adds support for Github extensions including
  2299. tables, autolinks and strikethrough text.")
  2300. (license license:bsd-2)))
  2301. (define-public r-roxygen2
  2302. (package
  2303. (name "r-roxygen2")
  2304. (version "7.1.2")
  2305. (source (origin
  2306. (method url-fetch)
  2307. (uri (cran-uri "roxygen2" version))
  2308. (sha256
  2309. (base32
  2310. "1zf55wywlpy7mk7zfyi3s9fhhg1m9kvafzj46iqw5cbvnlg3ssdk"))))
  2311. (build-system r-build-system)
  2312. (propagated-inputs
  2313. (list r-brew
  2314. r-commonmark
  2315. r-cpp11
  2316. r-desc
  2317. r-digest
  2318. r-knitr
  2319. r-pkgload
  2320. r-purrr
  2321. r-r6
  2322. r-rlang
  2323. r-stringi
  2324. r-stringr
  2325. r-xml2))
  2326. (native-inputs
  2327. (list r-knitr))
  2328. (home-page "https://github.com/klutometis/roxygen")
  2329. (synopsis "In-source documentation system for R")
  2330. (description
  2331. "Roxygen2 is a Doxygen-like in-source documentation system for Rd,
  2332. collation, and NAMESPACE files.")
  2333. (license license:gpl2+)))
  2334. (define-public r-openssl
  2335. (package
  2336. (name "r-openssl")
  2337. (version "2.0.0")
  2338. (source
  2339. (origin
  2340. (method url-fetch)
  2341. (uri (cran-uri "openssl" version))
  2342. (sha256
  2343. (base32
  2344. "0jsnzxa72bfxsdai25xyklmmrraaf9yv2nmqmf0bgzrkbzkgsa7b"))))
  2345. (build-system r-build-system)
  2346. (arguments
  2347. (list
  2348. #:phases
  2349. '(modify-phases %standard-phases
  2350. (add-after 'unpack 'do-not-use-versioned-linking
  2351. (lambda _
  2352. (substitute* "configure"
  2353. (("PKG_LIBS=\"\\$\\{PKG_LIBS_VERSIONED\\}\"")
  2354. "PKG_LIBS=\"${PKG_LIBS}\"")))))))
  2355. (inputs
  2356. (list openssl))
  2357. (native-inputs
  2358. (list pkg-config r-knitr))
  2359. (propagated-inputs
  2360. (list r-askpass))
  2361. (home-page "https://github.com/jeroenooms/openssl")
  2362. (synopsis "Toolkit for encryption, signatures and certificates")
  2363. (description
  2364. "This package provides R bindings to OpenSSL libssl and libcrypto, plus
  2365. custom SSH pubkey parsers. It supports RSA, DSA and NIST curves P-256, P-384
  2366. and P-521. Cryptographic signatures can either be created and verified
  2367. manually or via x509 certificates. AES block cipher is used in CBC mode for
  2368. symmetric encryption; RSA for asymmetric (public key) encryption. High-level
  2369. envelope functions combine RSA and AES for encrypting arbitrary sized data.
  2370. Other utilities include key generators, hash functions (md5, sha1, sha256,
  2371. etc), base64 encoder, a secure random number generator, and @code{bignum} math
  2372. methods for manually performing crypto calculations on large multibyte
  2373. integers.")
  2374. (license license:expat)))
  2375. (define-public r-httr
  2376. (package
  2377. (name "r-httr")
  2378. (version "1.4.2")
  2379. (source (origin
  2380. (method url-fetch)
  2381. (uri (cran-uri "httr" version))
  2382. (sha256
  2383. (base32
  2384. "1y8y1g1dkgv9jafrk1kj6pzxpw95c0rr9lplblfq2byrs1pfsas6"))))
  2385. (build-system r-build-system)
  2386. (propagated-inputs
  2387. (list r-curl r-jsonlite r-openssl r-mime r-r6))
  2388. (native-inputs
  2389. (list r-knitr))
  2390. (home-page "https://github.com/hadley/httr")
  2391. (synopsis "Tools for working with URLs and HTTP")
  2392. (description
  2393. "The aim of httr is to provide a wrapper for RCurl customised to the
  2394. demands of modern web APIs. It provides useful tools for working with HTTP
  2395. organised by HTTP verbs (@code{GET()}, @code{POST()}, etc). Configuration
  2396. functions make it easy to control additional request components.")
  2397. (license license:expat)))
  2398. (define-public r-git2r
  2399. (package
  2400. (name "r-git2r")
  2401. (version "0.29.0")
  2402. (source (origin
  2403. (method url-fetch)
  2404. (uri (cran-uri "git2r" version))
  2405. (sha256
  2406. (base32
  2407. "13nlrhma6kavvhranb43w3003vadfkyrn2f4l3r63iqavj0s3xzq"))))
  2408. (build-system r-build-system)
  2409. (inputs
  2410. (list libgit2 zlib))
  2411. (native-inputs
  2412. (list pkg-config))
  2413. (home-page "https://github.com/ropensci/git2r")
  2414. (synopsis "Access Git repositories with R")
  2415. (description
  2416. "This package provides an R interface to the libgit2 library, which is a
  2417. pure C implementation of the Git core methods.")
  2418. ;; GPLv2 only with linking exception.
  2419. (license license:gpl2)))
  2420. (define-public r-rstudioapi
  2421. (package
  2422. (name "r-rstudioapi")
  2423. (version "0.13")
  2424. (source (origin
  2425. (method url-fetch)
  2426. (uri (cran-uri "rstudioapi" version))
  2427. (sha256
  2428. (base32
  2429. "12vdfzzjc6mv4h105l8cp108j3hjk0mqmg23m6mqr3jarfymphxa"))))
  2430. (build-system r-build-system)
  2431. (native-inputs
  2432. (list r-knitr))
  2433. (home-page "https://cran.r-project.org/web/packages/rstudioapi")
  2434. (synopsis "Safely access the RStudio API")
  2435. (description
  2436. "This package provides functions to access the RStudio API and provide
  2437. informative error messages when it's not available.")
  2438. (license license:expat)))
  2439. (define-public r-devtools
  2440. (package
  2441. (name "r-devtools")
  2442. (version "2.4.3")
  2443. (source (origin
  2444. (method url-fetch)
  2445. (uri (cran-uri "devtools" version))
  2446. (sha256
  2447. (base32
  2448. "0kvbw218jp8pd2lgdjyn94v2iji75s385hkn1qbikcm0pjlmj8g4"))))
  2449. (build-system r-build-system)
  2450. (propagated-inputs
  2451. (list r-callr
  2452. r-cli
  2453. r-desc
  2454. r-ellipsis
  2455. r-fs
  2456. r-httr
  2457. r-lifecycle
  2458. r-memoise
  2459. r-pkgbuild
  2460. r-pkgload
  2461. r-rcmdcheck
  2462. r-remotes
  2463. r-rlang
  2464. r-roxygen2
  2465. r-rstudioapi
  2466. r-rversions
  2467. r-sessioninfo
  2468. r-testthat
  2469. r-usethis
  2470. r-withr))
  2471. (native-inputs
  2472. (list r-knitr))
  2473. (home-page "https://github.com/hadley/devtools")
  2474. (synopsis "Tools to make developing R packages easier")
  2475. (description "The devtools package is a collection of package development
  2476. tools to simplify the devolpment of R packages.")
  2477. (license license:gpl2+)))
  2478. (define-public r-withr
  2479. (package
  2480. (name "r-withr")
  2481. (version "2.5.0")
  2482. (source (origin
  2483. (method url-fetch)
  2484. (uri (cran-uri "withr" version))
  2485. (sha256
  2486. (base32
  2487. "1h4bzj0am9lawbh1cam1jmgk1xjmn9da14r90w3q984hswz7nc9p"))))
  2488. (build-system r-build-system)
  2489. (native-inputs
  2490. (list r-knitr))
  2491. (home-page "https://github.com/jimhester/withr")
  2492. (synopsis "Run code with temporarily modified global state")
  2493. (description
  2494. "This package provides a set of functions to run R code in an environment
  2495. in which global state has been temporarily modified. Many of these functions
  2496. were originally a part of the r-devtools package.")
  2497. (license license:gpl2+)))
  2498. (define-public r-hms
  2499. (package
  2500. (name "r-hms")
  2501. (version "1.1.1")
  2502. (source
  2503. (origin
  2504. (method url-fetch)
  2505. (uri (cran-uri "hms" version))
  2506. (sha256
  2507. (base32
  2508. "0qlh4s1g9rbm6c3s906dhw3xsz28m8fg6cyynlkhvis533dk0pvb"))))
  2509. (build-system r-build-system)
  2510. (propagated-inputs
  2511. (list r-ellipsis r-lifecycle r-pkgconfig r-rlang r-vctrs))
  2512. (home-page "https://github.com/rstats-db/hms")
  2513. (synopsis "Pretty time of day")
  2514. (description
  2515. "This package implements an S3 class for storing and formatting
  2516. time-of-day values, based on the @code{difftime} class.")
  2517. (license license:gpl3+)))
  2518. (define-public r-readr
  2519. (package
  2520. (name "r-readr")
  2521. (version "2.1.2")
  2522. (source (origin
  2523. (method url-fetch)
  2524. (uri (cran-uri "readr" version))
  2525. (sha256
  2526. (base32
  2527. "06qcw57yz0fhh3ni41d5w68cbmwmb6zkp47chllwzax43wxd1bwl"))))
  2528. (build-system r-build-system)
  2529. (propagated-inputs
  2530. (list r-cli
  2531. r-clipr
  2532. r-cpp11
  2533. r-crayon
  2534. r-hms
  2535. r-lifecycle
  2536. r-tibble
  2537. r-r6
  2538. r-rlang
  2539. r-tzdb
  2540. r-vroom))
  2541. (native-inputs
  2542. (list r-knitr))
  2543. (home-page "https://github.com/hadley/readr")
  2544. (synopsis "Read tabular data")
  2545. (description
  2546. "This package provides functions to read flat or tabular text files from
  2547. disk (or a connection).")
  2548. (license license:gpl2+)))
  2549. (define-public r-plotrix
  2550. (package
  2551. (name "r-plotrix")
  2552. (version "3.8-2")
  2553. (source (origin
  2554. (method url-fetch)
  2555. (uri (cran-uri "plotrix" version))
  2556. (sha256
  2557. (base32
  2558. "07xwq3505qb2yak7pfda22yqwifj6m78f8b5rm0ym74808qrawmv"))))
  2559. (build-system r-build-system)
  2560. (home-page "https://cran.r-project.org/web/packages/plotrix")
  2561. (synopsis "Various plotting functions")
  2562. (description
  2563. "This package provides lots of plotting, various labeling, axis and color
  2564. scaling functions for R.")
  2565. (license license:gpl2+)))
  2566. (define-public r-gridbase
  2567. (package
  2568. (name "r-gridbase")
  2569. (version "0.4-7")
  2570. (source (origin
  2571. (method url-fetch)
  2572. (uri (cran-uri "gridBase" version))
  2573. (sha256
  2574. (base32
  2575. "09jzw4rzwf2y5lcz7b16mb68pn0fqigv34ff7lr6w3yi9k91i1xy"))))
  2576. (build-system r-build-system)
  2577. (home-page "https://cran.r-project.org/web/packages/gridBase")
  2578. (synopsis "Integration of base and grid graphics")
  2579. (description
  2580. "This package provides an integration of base and grid graphics for R.")
  2581. (license license:gpl2+)))
  2582. (define-public r-latticeextra
  2583. (package
  2584. (name "r-latticeextra")
  2585. (version "0.6-29")
  2586. (source
  2587. (origin
  2588. (method url-fetch)
  2589. (uri (cran-uri "latticeExtra" version))
  2590. (sha256
  2591. (base32
  2592. "04fzwcqs594rk5qp98yilh3kdh3sw4xf8wld5rp94ggpaqfw7bbc"))))
  2593. (properties `((upstream-name . "latticeExtra")))
  2594. (build-system r-build-system)
  2595. (propagated-inputs
  2596. (list r-jpeg r-lattice r-png r-rcolorbrewer))
  2597. (home-page "http://latticeextra.r-forge.r-project.org/")
  2598. (synopsis "Extra graphical utilities based on lattice")
  2599. (description
  2600. "Building on the infrastructure provided by the lattice package, this
  2601. package provides several new high-level graphics functions and methods, as
  2602. well as additional utilities such as panel and axis annotation functions.")
  2603. (license license:gpl2+)))
  2604. (define-public r-rcpparmadillo
  2605. (package
  2606. (name "r-rcpparmadillo")
  2607. (version "0.10.8.1.0")
  2608. (source (origin
  2609. (method url-fetch)
  2610. (uri (cran-uri "RcppArmadillo" version))
  2611. (sha256
  2612. (base32
  2613. "1x7mk85rc4pmn17nm63k6rbkarsmghjapznias268545nfpib97g"))))
  2614. (properties `((upstream-name . "RcppArmadillo")))
  2615. (build-system r-build-system)
  2616. (propagated-inputs
  2617. (list r-rcpp))
  2618. (home-page "https://github.com/RcppCore/RcppArmadillo")
  2619. (synopsis "Rcpp integration for the Armadillo linear algebra library")
  2620. (description
  2621. "Armadillo is a templated C++ linear algebra library that aims towards a
  2622. good balance between speed and ease of use. Integer, floating point and
  2623. complex numbers are supported, as well as a subset of trigonometric and
  2624. statistics functions. Various matrix decompositions are provided through
  2625. optional integration with LAPACK and ATLAS libraries. This package includes
  2626. the header files from the templated Armadillo library.")
  2627. ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
  2628. ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
  2629. ;; later, as is the rest of 'Rcpp'.
  2630. (license license:gpl2+)))
  2631. (define-public r-bitops
  2632. (package
  2633. (name "r-bitops")
  2634. (version "1.0-7")
  2635. (source (origin
  2636. (method url-fetch)
  2637. (uri (cran-uri "bitops" version))
  2638. (sha256
  2639. (base32
  2640. "1i0phmq5yynla5x0frqll1gbf5ww59p3sgz1s06a354zqf9grdg9"))))
  2641. (build-system r-build-system)
  2642. (home-page "https://cran.r-project.org/web/packages/bitops")
  2643. (synopsis "Bitwise operations")
  2644. (description
  2645. "This package provides functions for bitwise operations on integer
  2646. vectors.")
  2647. (license license:gpl2+)))
  2648. (define-public r-catools
  2649. (package
  2650. (name "r-catools")
  2651. (version "1.18.2")
  2652. (source (origin
  2653. (method url-fetch)
  2654. (uri (cran-uri "caTools" version))
  2655. (sha256
  2656. (base32
  2657. "14q2ry8gaszjl0m97qg62dxv5bpj6k02qwyi7q2lnxgcmwai3mkm"))))
  2658. (properties `((upstream-name . "caTools")))
  2659. (build-system r-build-system)
  2660. (propagated-inputs
  2661. (list r-bitops))
  2662. (home-page "https://cran.r-project.org/web/packages/caTools")
  2663. (synopsis "Various tools including functions for moving window statistics")
  2664. (description
  2665. "This package contains several basic utility functions including:
  2666. moving (rolling, running) window statistic functions, read/write for GIF and
  2667. ENVI binary files, fast calculation of AUC, LogitBoost classifier, base64
  2668. encoder/decoder, round-off-error-free sum and cumsum, etc.")
  2669. (license license:gpl3+)))
  2670. (define-public r-rprojroot
  2671. (package
  2672. (name "r-rprojroot")
  2673. (version "2.0.2")
  2674. (source
  2675. (origin
  2676. (method url-fetch)
  2677. (uri (cran-uri "rprojroot" version))
  2678. (sha256
  2679. (base32
  2680. "07wy07yhms8zln9qb0iwx69dq08h4lrdi8kavjcplfxcskq638az"))))
  2681. (build-system r-build-system)
  2682. (native-inputs
  2683. (list r-knitr))
  2684. (home-page "https://github.com/krlmlr/rprojroot")
  2685. (synopsis "Finding files in project subdirectories")
  2686. (description
  2687. "This package helps accessing files relative to a project root. It
  2688. provides helpers for robust, reliable and flexible paths to files below a
  2689. project root. The root of a project is defined as a directory that matches a
  2690. certain criterion, e.g., it contains a certain regular file.")
  2691. (license license:gpl3)))
  2692. (define-public r-rmarkdown
  2693. (package
  2694. (name "r-rmarkdown")
  2695. (version "2.13")
  2696. (source
  2697. (origin
  2698. (method url-fetch)
  2699. (uri (cran-uri "rmarkdown" version))
  2700. (sha256
  2701. (base32 "0i07p3dxxv2s2a4xmyhc3qxmwg86vakniq5jjjclmcq2sahvw5vj"))))
  2702. (properties `((upstream-name . "rmarkdown")))
  2703. (build-system r-build-system)
  2704. (propagated-inputs
  2705. (list r-bslib
  2706. r-evaluate
  2707. r-htmltools
  2708. r-jquerylib
  2709. r-jsonlite
  2710. r-knitr
  2711. r-stringr
  2712. r-tinytex
  2713. r-xfun
  2714. r-yaml
  2715. pandoc))
  2716. (native-inputs
  2717. (list r-knitr))
  2718. (home-page "https://rmarkdown.rstudio.com")
  2719. (synopsis "Convert R Markdown documents into a variety of formats")
  2720. (description
  2721. "This package provides tools to convert R Markdown documents into a
  2722. variety of formats.")
  2723. (license license:gpl3+)))
  2724. (define-public r-gtable
  2725. (package
  2726. (name "r-gtable")
  2727. (version "0.3.0")
  2728. (source (origin
  2729. (method url-fetch)
  2730. (uri (cran-uri "gtable" version))
  2731. (sha256
  2732. (base32
  2733. "1lyncxf2dqdjgw1071cn9c8zwzkz6sldnd5cgmicf70bc726qf7x"))))
  2734. (properties `((upstream-name . "gtable")))
  2735. (build-system r-build-system)
  2736. (home-page "https://cran.r-project.org/web/packages/gtable")
  2737. (synopsis "R library to arrange grobs in tables")
  2738. (description
  2739. "Gtable is a collection of tools to make it easier to work with
  2740. \"tables\" of grobs.")
  2741. (license license:gpl2+)))
  2742. (define-public r-gridextra
  2743. (package
  2744. (name "r-gridextra")
  2745. (version "2.3")
  2746. (source (origin
  2747. (method url-fetch)
  2748. (uri (cran-uri "gridExtra" version))
  2749. (sha256
  2750. (base32
  2751. "0fwfk3cdwxxim7nd55pn7m31bcaqj48y06j7an2k1v1pybk0rdl1"))))
  2752. (properties `((upstream-name . "gridExtra")))
  2753. (build-system r-build-system)
  2754. (propagated-inputs
  2755. (list r-gtable))
  2756. (native-inputs
  2757. (list r-knitr)) ;for building vignettes
  2758. (home-page "https://github.com/baptiste/gridextra")
  2759. (synopsis "Miscellaneous functions for \"Grid\" graphics")
  2760. (description
  2761. "This package provides a number of user-level functions to work with
  2762. @code{grid} graphics, notably to arrange multiple grid-based plots on a page,
  2763. and draw tables.")
  2764. (license license:gpl2+)))
  2765. (define-public r-pkgconfig
  2766. (package
  2767. (name "r-pkgconfig")
  2768. (version "2.0.3")
  2769. (source (origin
  2770. (method url-fetch)
  2771. (uri (cran-uri "pkgconfig" version))
  2772. (sha256
  2773. (base32
  2774. "0l1qph8zyi2sic3k2qcd7vlfl7rzfh1q7z7zvjkl5f7y1x2fy3rk"))))
  2775. (build-system r-build-system)
  2776. (home-page "https://github.com/gaborcsardi/pkgconfig")
  2777. (synopsis "Private configuration for R packages")
  2778. (description "This package provides the functionality to set configuration
  2779. options on a per-package basis. Options set by a given package only apply to
  2780. that package, other packages are unaffected.")
  2781. (license license:expat)))
  2782. (define-public r-blob
  2783. (package
  2784. (name "r-blob")
  2785. (version "1.2.2")
  2786. (source (origin
  2787. (method url-fetch)
  2788. (uri (cran-uri "blob" version))
  2789. (sha256
  2790. (base32
  2791. "1yn7f13icaix0apxp4drnciwdn8bx8xmbd129jd7ck4rcly0axj9"))))
  2792. (build-system r-build-system)
  2793. (propagated-inputs
  2794. (list r-rlang r-vctrs))
  2795. (home-page "https://github.com/hadley/blob")
  2796. (synopsis "Simple S3 Class for representing vectors of binary data")
  2797. (description "Raw vectors in R are useful for storing a single binary
  2798. object. What if you want to put a vector of them in a data frame? The blob
  2799. package provides the blob object, a list of raw vectors, suitable for use as
  2800. a column in data frame.")
  2801. (license license:gpl3+)))
  2802. (define-public r-rsqlite
  2803. (package
  2804. (name "r-rsqlite")
  2805. (version "2.2.10")
  2806. (source (origin
  2807. (method url-fetch)
  2808. (uri (cran-uri "RSQLite" version))
  2809. (sha256
  2810. (base32
  2811. "1a00i24g4d4gvp7qmivpyfm24yfz4w4wsy2kplgfz0i0j0rzzbh6"))))
  2812. (properties `((upstream-name . "RSQLite")))
  2813. (build-system r-build-system)
  2814. (propagated-inputs
  2815. (list r-dbi
  2816. r-memoise
  2817. r-plogr
  2818. r-rcpp
  2819. r-bit64
  2820. r-blob
  2821. r-pkgconfig))
  2822. (native-inputs
  2823. (list r-knitr))
  2824. (home-page "https://github.com/rstats-db/RSQLite")
  2825. (synopsis "SQLite interface for R")
  2826. (description
  2827. "This package embeds the SQLite database engine in R and provides an
  2828. interface compliant with the DBI package. The source for the SQLite
  2829. engine (version 3.8.8.2) is included.")
  2830. (license license:lgpl2.0+)))
  2831. (define-public r-rcurl
  2832. (package
  2833. (name "r-rcurl")
  2834. (version "1.95-0.1.2")
  2835. (source (origin
  2836. (method url-fetch)
  2837. (uri (string-append "https://www.bioconductor.org/packages/"
  2838. "release/extra/src/"
  2839. "contrib/RCurl_" version ".tar.gz"))
  2840. (sha256
  2841. (base32
  2842. "0l7qi45jxlf898n0jazabnam1yyczvqfdknd00bdirhhiplpd1sc"))))
  2843. (properties `((upstream-name . "RCurl")))
  2844. (build-system r-build-system)
  2845. (arguments
  2846. `(#:phases
  2847. (modify-phases %standard-phases
  2848. (add-after 'unpack 'respect-CURL_CA_BUNDLE
  2849. (lambda _
  2850. (substitute* "R/options.S"
  2851. (("\\.els = rev\\(merge\\(list\\(\\.\\.\\.\\), \\.opts\\)\\)" m)
  2852. (string-append "\
  2853. certs = Sys.getenv(\"CURL_CA_BUNDLE\")
  2854. if (certs != \"\") { .opts = merge.list(.opts, list(cainfo=certs)) }
  2855. " m)))
  2856. #t)))))
  2857. (inputs
  2858. `(("libcurl" ,curl)))
  2859. (propagated-inputs
  2860. (list r-bitops))
  2861. (home-page "http://www.omegahat.net/RCurl")
  2862. (synopsis "General network client interface for R")
  2863. (description
  2864. "The package allows one to compose general HTTP requests and provides
  2865. convenient functions to fetch URIs, GET and POST forms, etc. and process the
  2866. results returned by the Web server. This provides a great deal of control
  2867. over the HTTP/FTP/... connection and the form of the request while providing a
  2868. higher-level interface than is available just using R socket connections.
  2869. Additionally, the underlying implementation is robust and extensive,
  2870. supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS, telnet, dict,
  2871. ldap, and also supports cookies, redirects, authentication, etc.")
  2872. (license license:bsd-3)))
  2873. (define-public r-xml
  2874. (package
  2875. (name "r-xml")
  2876. (version "3.99-0.9")
  2877. (source (origin
  2878. (method url-fetch)
  2879. (uri (cran-uri "XML" version))
  2880. (sha256
  2881. (base32
  2882. "02ba407ddgil4jbjzrbw756hlxzy3mihc5dk1ngcbvsp67gxw5cw"))))
  2883. (properties
  2884. `((upstream-name . "XML")))
  2885. (build-system r-build-system)
  2886. (inputs
  2887. (list libxml2 zlib))
  2888. (native-inputs
  2889. (list pkg-config))
  2890. (home-page "http://www.omegahat.net/RSXML")
  2891. (synopsis "Tools for parsing and generating XML within R")
  2892. (description
  2893. "Many approaches for both reading and creating XML (and HTML)
  2894. documents (including DTDs), both local and accessible via HTTP or FTP. Also
  2895. offers access to an XPath \"interpreter\".")
  2896. (license license:bsd-2)))
  2897. (define-public r-xnomial
  2898. (package
  2899. (name "r-xnomial")
  2900. (version "1.0.4")
  2901. (source
  2902. (origin (method url-fetch)
  2903. (uri (cran-uri "XNomial" version))
  2904. (sha256
  2905. (base32
  2906. "1mwx302576rmsjllbq2clfxilm3hkyp5bw0wmwqbn0kgv5wpy8z6"))))
  2907. (properties (quasiquote ((upstream-name . "XNomial"))))
  2908. (build-system r-build-system)
  2909. (home-page "https://cran.r-project.org/web/packages/XNomial")
  2910. (synopsis "Goodness-of-Fit test for multinomial data")
  2911. (description
  2912. "This package provides an exact Goodness-of-Fit test for
  2913. multinomial data with fixed probabilities. It can be used to
  2914. determine whether a set of counts fits a given expected ratio. To see
  2915. whether a set of observed counts fits an expectation, one can examine
  2916. all possible outcomes with @code{xmulti()} or a random sample of them
  2917. with @code{xmonte()} and find the probability of an observation
  2918. deviating from the expectation by at least as much as the observed.
  2919. As a measure of deviation from the expected, one can use the
  2920. log-likelihood ratio, the multinomial probability, or the classic
  2921. chi-square statistic. A histogram of the test statistic can also be
  2922. plotted and compared with the asymptotic curve.")
  2923. (license (list license:gpl2+ license:gpl3+))))
  2924. (define-public r-lambda-r
  2925. (package
  2926. (name "r-lambda-r")
  2927. (version "1.2.4")
  2928. (source (origin
  2929. (method url-fetch)
  2930. (uri (cran-uri "lambda.r" version))
  2931. (sha256
  2932. (base32
  2933. "1mh1g0gsd58gng0hb29vww2yqb2jfs07kba5kxnnqck5j3izwlnj"))))
  2934. (properties `((upstream-name . "lambda.r")))
  2935. (build-system r-build-system)
  2936. (propagated-inputs
  2937. (list r-formatr))
  2938. (home-page "https://cran.r-project.org/web/packages/lambda.r")
  2939. (synopsis "Functional programming extension for R")
  2940. (description
  2941. "This package provides a language extension to efficiently write
  2942. functional programs in R. Syntax extensions include multi-part function
  2943. definitions, pattern matching, guard statements, built-in (optional) type
  2944. safety.")
  2945. (license license:lgpl3+)))
  2946. (define-public r-futile-options
  2947. (package
  2948. (name "r-futile-options")
  2949. (version "1.0.1")
  2950. (source (origin
  2951. (method url-fetch)
  2952. (uri (cran-uri "futile.options" version))
  2953. (sha256
  2954. (base32
  2955. "0w15agpi88y3qkv6fl72zy2pzyplzgvnj41a4ixhg64mw1sck73s"))))
  2956. (properties
  2957. `((upstream-name . "futile.options")))
  2958. (build-system r-build-system)
  2959. (home-page "https://cran.r-project.org/web/packages/futile.options")
  2960. (synopsis "Options management framework")
  2961. (description
  2962. "The futile.options subsystem provides an easy user-defined options
  2963. management system that is properly scoped. This means that options created
  2964. via @code{futile.options} are fully self-contained and will not collide with
  2965. options defined in other packages.")
  2966. (license license:lgpl3+)))
  2967. (define-public r-futile-logger
  2968. (package
  2969. (name "r-futile-logger")
  2970. (version "1.4.3")
  2971. (source (origin
  2972. (method url-fetch)
  2973. (uri (cran-uri "futile.logger" version))
  2974. (sha256
  2975. (base32
  2976. "1r3nayk0z9n1svbf8640vw90dal5q07nkn0gv4bnva3pbzb352sy"))))
  2977. (properties `((upstream-name . "futile.logger")))
  2978. (build-system r-build-system)
  2979. (propagated-inputs
  2980. (list r-futile-options r-lambda-r))
  2981. (home-page "https://cran.r-project.org/web/packages/futile.logger")
  2982. (synopsis "Logging utility for R")
  2983. (description
  2984. "This package provides a simple yet powerful logging utility. Based
  2985. loosely on log4j, futile.logger takes advantage of R idioms to make logging a
  2986. convenient and easy to use replacement for @code{cat} and @code{print}
  2987. statements.")
  2988. (license license:lgpl3+)))
  2989. (define-public r-segmented
  2990. (package
  2991. (name "r-segmented")
  2992. (version "1.4-0")
  2993. (source
  2994. (origin
  2995. (method url-fetch)
  2996. (uri (cran-uri "segmented" version))
  2997. (sha256
  2998. (base32
  2999. "0xn28gyqzmyz0kv352rkkznbj806arxj2am5a9gqsn1qzv9l0s9h"))))
  3000. (build-system r-build-system)
  3001. (propagated-inputs (list r-mass))
  3002. (home-page "https://cran.r-project.org/web/packages/segmented")
  3003. (synopsis "Regression models with breakpoints estimation")
  3004. (description
  3005. "Given a regression model, segmented updates the model by adding one or
  3006. more segmented (i.e., piecewise-linear) relationships. Several variables with
  3007. multiple breakpoints are allowed.")
  3008. (license (list license:gpl2+ license:gpl3+))))
  3009. (define-public r-snow
  3010. (package
  3011. (name "r-snow")
  3012. (version "0.4-4")
  3013. (source (origin
  3014. (method url-fetch)
  3015. (uri (cran-uri "snow" version))
  3016. (sha256
  3017. (base32
  3018. "1j8kvf3imxijsqkdjz4i9s7qggfxqrpas46y5wz6za92y937yn44"))))
  3019. (build-system r-build-system)
  3020. (home-page "https://cran.r-project.org/web/packages/snow")
  3021. (synopsis "Support for simple parallel computing in R")
  3022. (description
  3023. "The snow package provides support for simple parallel computing on a
  3024. network of workstations using R. A master R process calls @code{makeCluster}
  3025. to start a cluster of worker processes; the master process then uses functions
  3026. such as @code{clusterCall} and @code{clusterApply} to execute R code on the
  3027. worker processes and collect and return the results on the master.")
  3028. (license (list license:gpl2+ license:gpl3+))))
  3029. (define-public r-sparsem
  3030. (package
  3031. (name "r-sparsem")
  3032. (version "1.81")
  3033. (source (origin
  3034. (method url-fetch)
  3035. (uri (cran-uri "SparseM" version))
  3036. (sha256
  3037. (base32
  3038. "0csbqd9wm6r4162mday1iaigzf9wv2rp1zq8hnihys6f38w8z0xx"))))
  3039. (properties
  3040. `((upstream-name . "SparseM")))
  3041. (native-inputs
  3042. (list gfortran))
  3043. (build-system r-build-system)
  3044. (home-page "http://www.econ.uiuc.edu/~roger/research/sparse/sparse.html")
  3045. (synopsis "Sparse linear algebra")
  3046. (description
  3047. "This package provides some basic linear algebra functionality for sparse
  3048. matrices. It includes Cholesky decomposition and backsolving as well as
  3049. standard R subsetting and Kronecker products.")
  3050. (license license:gpl2+)))
  3051. (define-public r-iterators
  3052. (package
  3053. (name "r-iterators")
  3054. (version "1.0.14")
  3055. (source
  3056. (origin
  3057. (method url-fetch)
  3058. (uri (cran-uri "iterators" version))
  3059. (sha256
  3060. (base32
  3061. "0yv7rh6ghlfx727xy2aq64a7skyxp9msakaffs641q9h15d0gwyf"))))
  3062. (build-system r-build-system)
  3063. (home-page "https://cran.r-project.org/web/packages/iterators")
  3064. (synopsis "Iterator construct for R")
  3065. (description
  3066. "This package provides support for iterators, which allow a programmer to
  3067. traverse through all the elements of a vector, list, or other collection of
  3068. data.")
  3069. (license license:asl2.0)))
  3070. (define-public r-foreach
  3071. (package
  3072. (name "r-foreach")
  3073. (version "1.5.2")
  3074. (source
  3075. (origin
  3076. (method url-fetch)
  3077. (uri (cran-uri "foreach" version))
  3078. (sha256
  3079. (base32
  3080. "1r5gdf9fp3rprvrhf0gzl9qmmqhgdn5gscpm5hk8zxpraf3qscsn"))))
  3081. (build-system r-build-system)
  3082. (propagated-inputs
  3083. (list r-codetools r-iterators))
  3084. (native-inputs
  3085. (list r-knitr))
  3086. (home-page "https://cran.r-project.org/web/packages/foreach")
  3087. (synopsis "Foreach looping construct for R")
  3088. (description
  3089. "This package provides support for the @code{foreach} looping construct.
  3090. @code{foreach} is an idiom that allows for iterating over elements in a
  3091. collection, without the use of an explicit loop counter. This package in
  3092. particular is intended to be used for its return value, rather than for its
  3093. side effects. In that sense, it is similar to the standard @code{lapply}
  3094. function, but doesn't require the evaluation of a function. Using
  3095. @code{foreach} without side effects also facilitates executing the loop in
  3096. parallel.")
  3097. (license license:asl2.0)))
  3098. (define-public r-doparallel
  3099. (package
  3100. (name "r-doparallel")
  3101. (version "1.0.17")
  3102. (source
  3103. (origin
  3104. (method url-fetch)
  3105. (uri (cran-uri "doParallel" version))
  3106. (sha256
  3107. (base32
  3108. "1mxbg2qqda1775vb4s26gz27p5n91lljgjmlqxq4sras22njasmr"))))
  3109. (properties `((upstream-name . "doParallel")))
  3110. (build-system r-build-system)
  3111. (propagated-inputs
  3112. (list r-foreach r-iterators))
  3113. (home-page "https://cran.r-project.org/web/packages/doParallel")
  3114. (synopsis "Foreach parallel adaptor for the 'parallel' package")
  3115. (description
  3116. "This package provides a parallel backend for the @code{%dopar%} function
  3117. using the parallel package.")
  3118. (license license:gpl2+)))
  3119. (define-public r-domc
  3120. (package
  3121. (name "r-domc")
  3122. (version "1.3.8")
  3123. (source
  3124. (origin
  3125. (method url-fetch)
  3126. (uri (cran-uri "doMC" version))
  3127. (sha256
  3128. (base32
  3129. "18qrcvqwm4cclvk8spvyi281y8prwzivj52xmzk1l9a82j2ny65j"))))
  3130. (properties `((upstream-name . "doMC")))
  3131. (build-system r-build-system)
  3132. (propagated-inputs
  3133. (list r-foreach r-iterators))
  3134. (home-page "https://cran.r-project.org/web/packages/doMC")
  3135. (synopsis "Foreach parallel adaptor for the 'parallel' package")
  3136. (description
  3137. "This package provides a parallel backend for the @code{%dopar%} function
  3138. using the multicore functionality of the parallel package.")
  3139. (license license:gpl2+)))
  3140. (define-public r-dt
  3141. (let ((javascript-sources
  3142. '(("https://cdn.datatables.net/1.10.20/js/jquery.dataTables.js"
  3143. "03ln7ys1q1hy3xpsrjxnjpg9hq3lfpqz0firrxsgjzj8fsw20is3"
  3144. "datatables")
  3145. ("https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap.js"
  3146. "16clrnxm7axn6cdimyf3qbskxg10gpn9ld5ls2xdfw5q1qf2i4ml"
  3147. "datatables")
  3148. ("https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.js"
  3149. "16v49zqxr1zil19bcx3wdnv95zdpiz2m979aazan7z04ymqb2rzb"
  3150. "datatables")
  3151. ("https://cdn.datatables.net/1.10.20/js/dataTables.foundation.js"
  3152. "1gpjm1pi2pl0hxsn0pg3s3f382y2s7nsr06866vxld6gb8054lld"
  3153. "datatables")
  3154. ("https://cdn.datatables.net/1.10.20/js/dataTables.jqueryui.js"
  3155. "0nxd8jph34vsk8k8whs2yiybrn6nsnwzhri0bxn2k1dzmcvpn24i"
  3156. "datatables")
  3157. ("https://cdn.datatables.net/1.10.20/js/dataTables.semanticui.js"
  3158. "1477f49xyxs4phias789mbspv23w8alxchhl5b5iy0aw6vd35c43"
  3159. "datatables")
  3160. ("https://cdn.datatables.net/autofill/2.3.4/js/dataTables.autoFill.js"
  3161. "04i6n7r3512gzfihl5wnhrvm0klnjp41g1z6cny3j803hvmnp8zk"
  3162. "datatables-extensions/AutoFill")
  3163. ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.bootstrap.js"
  3164. "1zi7iiq63i5qx3p9cyynn6am4idxwj8xaz8mp4n3klm1x68sc0ja"
  3165. "datatables-extensions/AutoFill")
  3166. ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.bootstrap4.js"
  3167. "1vk2smcz14raf0cz88a65yf36a7mnmbml02q03apg2b8bqy91m7w"
  3168. "datatables-extensions/AutoFill")
  3169. ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.foundation.js"
  3170. "0sbcib1461pkglk69fzzqi73g4abylah74f264v0f79dc5247yzz"
  3171. "datatables-extensions/AutoFill")
  3172. ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.jqueryui.js"
  3173. "1dw9vbbchzbd2c7id8na2p1cxac2kgjbzjrvqafra715hr0i4z3z"
  3174. "datatables-extensions/AutoFill")
  3175. ("https://cdn.datatables.net/autofill/2.3.4/js/autoFill.semanticui.js"
  3176. "07ck81y6wpqchq8jfym6gjgc57xwj6vv9h5w9grc1gps6p7q9xnr"
  3177. "datatables-extensions/AutoFill")
  3178. ("https://cdn.datatables.net/buttons/1.6.1/js/dataTables.buttons.js"
  3179. "15l9kd9898zm8xf996d5c761rwl55k4w718k9k5fzz2gh91g21g5"
  3180. "datatables-extensions/Buttons")
  3181. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.colVis.js"
  3182. "1rqlv5pacipl652xgyzsdq1gbfwv52rwl4mr2fx9a3py21yskppk"
  3183. "datatables-extensions/Buttons")
  3184. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.flash.js"
  3185. "150r2ypxl017kl5agrn17cnyvwpf7x2x7vkqbc1qxif8vclf35kj"
  3186. "datatables-extensions/Buttons")
  3187. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.html5.js"
  3188. "1d8is99yrh95hycjijzbrbxy1anfslab6krmhj2xbwsmssyn16xh"
  3189. "datatables-extensions/Buttons")
  3190. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.print.js"
  3191. "1irgspv2zidv6v0ay92152d8cvhz2zyrwb71xk3nw903223vc2gl"
  3192. "datatables-extensions/Buttons")
  3193. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.semanticui.js"
  3194. "1p02r953ampxlzfzpay227ya6qdzsxz2anjxpnx3q8qs6gv6y2jl"
  3195. "datatables-extensions/Buttons")
  3196. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.foundation.js"
  3197. "0aykm1sk8rwvxp5r4qnvbb2scx2bln5kh88h36829mcqcdksfc50"
  3198. "datatables-extensions/Buttons")
  3199. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.jqueryui.js"
  3200. "1im6f6jw3yc3959rw1i3bghvz863kmp3wgfvz661r1r2wjzzfs4d"
  3201. "datatables-extensions/Buttons")
  3202. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.bootstrap.js"
  3203. "1mzmpabhrk0iag7hb16n8bhghx4cprq39p2vqn3v65mpklajzznc"
  3204. "datatables-extensions/Buttons")
  3205. ("https://cdn.datatables.net/buttons/1.6.1/js/buttons.bootstrap4.js"
  3206. "0hfclipg43wr9p7irrcn9vp5wji8z7gz6y5mclkq88z1mlpwklzf"
  3207. "datatables-extensions/Buttons")
  3208. ;; It is not clear what version the bundled file corresponds to.
  3209. ("https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.js"
  3210. "18hpj9vwgki56ijb20l5gwmqa5p1d0xprn57z2mlg3ph6ll0bdkd"
  3211. "datatables-extensions/Buttons")
  3212. ("https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.js"
  3213. "1sfw80az2cgzin5wk7q1p2n9zm66c35cz0m6isdygml81i594wia"
  3214. "datatables-extensions/Buttons")
  3215. ("https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"
  3216. "1k324s0hw4lfpd71bb1cnv4j5096k8smk64fjdsh81sl0ykizf2w"
  3217. "datatables-extensions/Buttons")
  3218. ("https://cdn.datatables.net/colreorder/1.5.2/js/dataTables.colReorder.js"
  3219. "1dalc28km19xzzszsa82hsd9alikrqpzjvf9vzxkccjpf7m2sdqg"
  3220. "datatables-extensions/ColReorder")
  3221. ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.foundation.js"
  3222. "0nrddc8swkmsfzji518kh6ks55ykyk9p8r4x5fmf8ckr9fhjkh0s"
  3223. "datatables-extensions/ColReorder")
  3224. ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.bootstrap.js"
  3225. "0crgmjwcn817yz6ibjkji6gsickvv2a4las9asyldfcpj2c99x84"
  3226. "datatables-extensions/ColReorder")
  3227. ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.bootstrap4.js"
  3228. "065fhw4v2d9rp3ic9zfb1q5d7pfq4f2949rr24hdjbspf19m3ymd"
  3229. "datatables-extensions/ColReorder")
  3230. ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.semanticui.js"
  3231. "17kw143ny0nq0yidsffw3cpghvlg2bzlzavfi0ihkamcn26ymxcp"
  3232. "datatables-extensions/ColReorder")
  3233. ("https://cdn.datatables.net/colreorder/1.5.2/js/colReorder.jqueryui.js"
  3234. "1rd8hijz3prg2y36fvqczrpdzixibjy2dxgs2fmgr8wrm8k01rrm"
  3235. "datatables-extensions/ColReorder")
  3236. ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/dataTables.fixedColumns.js"
  3237. "0vsqk2fv59n351bdfcbvhmvpq38qwf41j1cn810xz1l1i07cg4hg"
  3238. "datatables-extensions/FixedColumns")
  3239. ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.bootstrap.js"
  3240. "1j4wvg694l960gk5dg7wghwa3dpgq8mnrcgp78ghm92i08djb1wy"
  3241. "datatables-extensions/FixedColumns")
  3242. ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.bootstrap4.js"
  3243. "1p79k9bjslyvmp1bdhmg4nm2l9nbfsi4kgw7rx3vjka3n50qy730"
  3244. "datatables-extensions/FixedColumns")
  3245. ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.foundation.js"
  3246. "0f0xkrsapzgma58f6l63rpn68xid098dxwqqddsyddl0hy0x1z82"
  3247. "datatables-extensions/FixedColumns")
  3248. ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.jqueryui.js"
  3249. "0lw35c8vkajx75pg4ddik4gyzmjak1jaw3flq850frwgnzsvhahx"
  3250. "datatables-extensions/FixedColumns")
  3251. ("https://cdn.datatables.net/fixedcolumns/3.3.0/js/fixedColumns.semanticui.js"
  3252. "1kqsap9y0d25a7m5zjakipifl5qi2qr72kfj4ap3zxavd8md2wyn"
  3253. "datatables-extensions/FixedColumns")
  3254. ("https://cdn.datatables.net/fixedheader/3.1.6/js/dataTables.fixedHeader.js"
  3255. "1ml5ilnm8nirr6rsgmzn75l1k0hcjz3sqk6h1y1gy8cpwpklvqri"
  3256. "datatables-extensions/FixedHeader")
  3257. ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.bootstrap.js"
  3258. "1qf3pkb3svpia7g8bwyql7ma3x2g4zj5bp0d14pnv8xpc9h52r93"
  3259. "datatables-extensions/FixedHeader")
  3260. ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.bootstrap4.js"
  3261. "19jcvnk7zh4k6fd5si3b743x70qzlkqiw3m10jbc5jzbpz8sj6qd"
  3262. "datatables-extensions/FixedHeader")
  3263. ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.foundation.js"
  3264. "0xmpx1r76vykqygksyjaf4d1ql1fid69rqhvk4k857iybqz3gdcv"
  3265. "datatables-extensions/FixedHeader")
  3266. ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.jqueryui.js"
  3267. "1lc0g2cag1sj3bqmh7rh5z00pmfv1srxfhwi32y4mgpzhrzpfzxn"
  3268. "datatables-extensions/FixedHeader")
  3269. ("https://cdn.datatables.net/fixedheader/3.1.6/js/fixedHeader.semanticui.js"
  3270. "1v0i6dc68h8l8673fb5970igzkl7as36riv504iyg82glfi7n877"
  3271. "datatables-extensions/FixedHeader")
  3272. ("https://cdn.datatables.net/keytable/2.5.1/js/dataTables.keyTable.js"
  3273. "16iib2icxsjh93x5hd42gpsl7bzpcsqb7zjgj0m1s02ls45bdlv5"
  3274. "datatables-extensions/KeyTable")
  3275. ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.bootstrap.js"
  3276. "0hnhk6am4yl6h6bb7as935k8h2syil9hf8g7nn409yd3ws736xpj"
  3277. "datatables-extensions/KeyTable")
  3278. ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.bootstrap4.js"
  3279. "0r85mp5yf9hgl5ayzzs46dfbxa231bjlvgb8lqpyzik1m6afa51i"
  3280. "datatables-extensions/KeyTable")
  3281. ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.foundation.js"
  3282. "11fr14p33lyvs0wfcx228m600i4qcaqb44q3hk723jxcz59k17dw"
  3283. "datatables-extensions/KeyTable")
  3284. ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.jqueryui.js"
  3285. "0572rxrvwyprdr8l5jkgacj2bkmhmgxjy5vybm65n54g9j19l6bc"
  3286. "datatables-extensions/KeyTable")
  3287. ("https://cdn.datatables.net/keytable/2.5.1/js/keyTable.semanticui.js"
  3288. "157mqn9mhmmf7vas2das4hbpwipk3wshs8n0808q04rbijr0g2bz"
  3289. "datatables-extensions/KeyTable")
  3290. ("https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.js"
  3291. "1jnsx4sqf7qjd1gz5ag9hn6n76cwwfms23rzw37lgbd6h54yqzwr"
  3292. "datatables-extensions/Responsive")
  3293. ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.foundation.js"
  3294. "1vzzqpd9l8xv0am42g4cilx9igmq60mgk0hab4ssqvbicrmrgq9z"
  3295. "datatables-extensions/Responsive")
  3296. ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.semanticui.js"
  3297. "1cjiwcf0d07482k08dhn5ffsizshw4hqgz5l58p03pq9g6wc9pvm"
  3298. "datatables-extensions/Responsive")
  3299. ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.jqueryui.js"
  3300. "10nykak2kf4sai64girh26xdmdil29jvw3zja2rpp2qzjg4172z9"
  3301. "datatables-extensions/Responsive")
  3302. ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.js"
  3303. "1xxlh01vmzmfwwlsa611pl2nrl2sx58rp8xmx301bfsylmp2v5b2"
  3304. "datatables-extensions/Responsive")
  3305. ("https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap4.js"
  3306. "1zjh15p7n1038sggaxv1xvcwbkhw2nk1ndx745s6cxiqb69y3i0h"
  3307. "datatables-extensions/Responsive")
  3308. ("https://cdn.datatables.net/rowgroup/1.1.1/js/dataTables.rowGroup.js"
  3309. "0s4q7ir2d6q36g29nn9mqk7vrqrdig2mm5zbcv0sn2lixqi29pkj"
  3310. "datatables-extensions/RowGroup")
  3311. ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.bootstrap.js"
  3312. "1xfdhqgznz9x1v8spvql6b0wbna13h8cbzvkjza14nqsmccxck66"
  3313. "datatables-extensions/RowGroup")
  3314. ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.bootstrap4.js"
  3315. "1xm53sda4fabwdaglngrj09bpiygkn9mm17grxbykn1jazqqdp62"
  3316. "datatables-extensions/RowGroup")
  3317. ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.foundation.js"
  3318. "0832i10vils1wv1sm10qvsnd4i2k2xkhskz6i9y2q0axkmk73hcd"
  3319. "datatables-extensions/RowGroup")
  3320. ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.jqueryui.js"
  3321. "0n53cd294s9mjblkykkqvd9n414bsc26wpcg5spxdscjl6hxh79p"
  3322. "datatables-extensions/RowGroup")
  3323. ("https://cdn.datatables.net/rowgroup/1.1.1/js/rowGroup.semanticui.js"
  3324. "010wls5nf387p21fdc2k952bxq89r5kxkv7j4wbvwf8k2a18cmc9"
  3325. "datatables-extensions/RowGroup")
  3326. ("https://cdn.datatables.net/rowreorder/1.2.6/js/dataTables.rowReorder.js"
  3327. "13ymbn3h9755pgb0gmlb9gl54vz9nqnz4mws7g6mlmz53r3sqhmj"
  3328. "datatables-extensions/RowReorder")
  3329. ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.bootstrap.js"
  3330. "185if2pxgc940rm49hdgln57pc5h9cszlii3bfpdf3pdc1fjhckm"
  3331. "datatables-extensions/RowReorder")
  3332. ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.bootstrap4.js"
  3333. "14129x4md57i4ff7j18m49jn5fw8r716np84cdrcawlydgjsxp4a"
  3334. "datatables-extensions/RowReorder")
  3335. ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.foundation.js"
  3336. "0zg94jckymxzda2xjyj9p38y5v61cji55kak1ylq72l6a9sw8sg6"
  3337. "datatables-extensions/RowReorder")
  3338. ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.jqueryui.js"
  3339. "08gm419xcixgqw0i5yv2mxyyvafhzviibifp6nv129vdxx0a5d8v"
  3340. "datatables-extensions/RowReorder")
  3341. ("https://cdn.datatables.net/rowreorder/1.2.6/js/rowReorder.semanticui.js"
  3342. "1zjrx2rlgw3qannsqa88pcp3i4pc87pwv7rmgfw1dar8namkr9kk"
  3343. "datatables-extensions/RowReorder")
  3344. ("https://cdn.datatables.net/scroller/2.0.1/js/dataTables.scroller.js"
  3345. "0zfjjdvwwlsnps24i9l4c97hmway2qs6addks1is5bxl4k1r6d16"
  3346. "datatables-extensions/Scroller")
  3347. ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.foundation.js"
  3348. "04bk6ink8wqay7655v93jvv86m3bn6asrsfb22i99rgxdvm8gn1z"
  3349. "datatables-extensions/Scroller")
  3350. ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.bootstrap.js"
  3351. "19dl40dl8ir21xvs1j7xhm2a4py1m21xbypwn499fg2awj8vaidi"
  3352. "datatables-extensions/Scroller")
  3353. ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.bootstrap4.js"
  3354. "0pbkgncijlafwdmyh4l65dabd18hzjh8r01cad3b9iy8cfif6iwd"
  3355. "datatables-extensions/Scroller")
  3356. ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.jqueryui.js"
  3357. "1md5mpx5in7wzsr38yn801cmv3phm0i0ikdnpd0b1nsna5ccpj14"
  3358. "datatables-extensions/Scroller")
  3359. ("https://cdn.datatables.net/scroller/2.0.1/js/scroller.semanticui.js"
  3360. "1dfbblbzbryjgiv31qfdjnijz19lmyijg12win3y8gsgfd4fp9zz"
  3361. "datatables-extensions/Scroller")
  3362. ("https://cdn.datatables.net/searchbuilder/1.0.0/js/dataTables.searchBuilder.js"
  3363. "0n5g0j0yfzqvdpsmwb27bj1rd8zx864fsx2k7b2kpv6mqqavzpqc"
  3364. "datatables-extensions/SearchBuilder")
  3365. ("https://cdn.datatables.net/searchbuilder/1.0.0/js/searchBuilder.bootstrap.js"
  3366. "1gnd8rjcg9c96xayshn9rwinzgmlwzddczjlpfmf2j33npmyka2y"
  3367. "datatables-extensions/SearchBuilder")
  3368. ("https://cdn.datatables.net/searchbuilder/1.0.0/js/searchBuilder.bootstrap4.js"
  3369. "0vdv5mi6zbp2dspmj0lw2vaqxvfadcydlmc6frqv4a68rms7wz05"
  3370. "datatables-extensions/SearchBuilder")
  3371. ("https://cdn.datatables.net/searchbuilder/1.0.0/js/searchBuilder.dataTables.js"
  3372. "0fbzfnaqswb2xq7m1vdzcg7l7qi0wmyz64ml6k4002kp0dm4xnlx"
  3373. "datatables-extensions/SearchBuilder")
  3374. ("https://cdn.datatables.net/searchpanes/1.1.1/js/dataTables.searchPanes.js"
  3375. "1s697avk42h24fsaq79d1kkw66dqig7xgpx9bvmhwncv8amkmz6i"
  3376. "datatables-extensions/SearchPanes")
  3377. ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.bootstrap.js"
  3378. "0n3z4fdx1nsga4l5hmd4s93piv9k0v607xd7q9h2zpq613if7sld"
  3379. "datatables-extensions/SearchPanes")
  3380. ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.bootstrap4.js"
  3381. "1i1arnvxp57z01wc207jxnw9h8clcish6l96c2gnmachgkaz8lqa"
  3382. "datatables-extensions/SearchPanes")
  3383. ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.dataTables.js"
  3384. "04zzg7i46igcd6gfvdln5alpgjn7m663yf9bf2f3fk9va4fvis6y"
  3385. "datatables-extensions/SearchPanes")
  3386. ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.foundation.js"
  3387. "0m78wdajxn1m3j9jn9jfwqf73wwsxrsfw4zf84h5y6saj4rrcz72"
  3388. "datatables-extensions/SearchPanes")
  3389. ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.jqueryui.js"
  3390. "0zb2x736isb8nxrmd7j8nb78lj8h0h9j3axnbjiybwzzk819xw1m"
  3391. "datatables-extensions/SearchPanes")
  3392. ("https://cdn.datatables.net/searchpanes/1.1.1/js/searchPanes.semanticui.js"
  3393. "1781d0xmx7xz0jly0wsw2zbrdmfc1crahmcdbsfbj5s66kdsnd7c"
  3394. "datatables-extensions/SearchPanes")
  3395. ("https://cdn.datatables.net/select/1.3.1/js/dataTables.select.js"
  3396. "0a7bkbz1cizhiq4h417b4rcdr7998pn8q4dlyzx8449xdp0h0n0v"
  3397. "datatables-extensions/Select")
  3398. ("https://cdn.datatables.net/select/1.3.1/js/select.bootstrap.js"
  3399. "0mm5ly3p2iprlfi8ajz548rjqx8lz1sbjj5ysgqmwqg14gw7l9k7"
  3400. "datatables-extensions/Select")
  3401. ("https://cdn.datatables.net/select/1.3.1/js/select.bootstrap4.js"
  3402. "1hv6d9lwgflmxhy7mdfb9rvli2wa2cbkdhqjz64zkf1a1a7wlb5q"
  3403. "datatables-extensions/Select")
  3404. ("https://cdn.datatables.net/select/1.3.1/js/select.foundation.js"
  3405. "1zzygcbngvrqh7m22x0s23k8m5xj5fv1p466pzjs23p94qq24a2r"
  3406. "datatables-extensions/Select")
  3407. ("https://cdn.datatables.net/select/1.3.1/js/select.jqueryui.js"
  3408. "1hv5zlmfifd27hylfqsji09y2hbp3m2hnb7j41418sjrxs63f6x6"
  3409. "datatables-extensions/Select")
  3410. ("https://cdn.datatables.net/select/1.3.1/js/select.semanticui.js"
  3411. "0q6q3vb6pa5nmkxy7zcnjs0bkn4ldw8ykdcfrc04bf1d2hjjaw47"
  3412. "datatables-extensions/Select"))))
  3413. (package
  3414. (name "r-dt")
  3415. (version "0.21")
  3416. (source (origin
  3417. (method url-fetch)
  3418. (uri (cran-uri "DT" version))
  3419. (sha256
  3420. (base32
  3421. "1yhlph9h8z78wqjddv598l2xrqpp605d70cxfb69m53hanw4hmzn"))
  3422. (modules '((guix build utils)))
  3423. (snippet
  3424. '(for-each delete-file
  3425. (find-files "inst/htmlwidgets/lib" "\\.min\\.js$")))))
  3426. (properties
  3427. `((upstream-name . "DT")))
  3428. (build-system r-build-system)
  3429. (arguments
  3430. `(#:modules
  3431. ((guix build r-build-system)
  3432. (guix build minify-build-system)
  3433. (guix build utils)
  3434. (ice-9 match))
  3435. #:imported-modules
  3436. (,@%r-build-system-modules
  3437. (guix build minify-build-system))
  3438. #:phases
  3439. (modify-phases (@ (guix build r-build-system) %standard-phases)
  3440. (add-after 'unpack 'process-javascript
  3441. (lambda* (#:key inputs #:allow-other-keys)
  3442. (with-directory-excursion "inst/htmlwidgets/lib/"
  3443. (for-each (match-lambda
  3444. ((url hash dir)
  3445. (let* ((input (string-append "js:" (basename url)))
  3446. (source (assoc-ref inputs input))
  3447. (target (string-append dir "/js/"
  3448. (basename url ".js")
  3449. ".min.js")))
  3450. (mkdir-p dir)
  3451. (minify source #:target target))))
  3452. ',javascript-sources)
  3453. (minify (string-append (assoc-ref inputs "datatables-plugins")
  3454. "/features/scrollResize/dataTables.scrollResize.js")
  3455. #:target "datatables-plugins/features/scrollResize/source.min.js")
  3456. (minify (string-append (assoc-ref inputs "datatables-plugins")
  3457. "/features/searchHighlight/dataTables.searchHighlight.js")
  3458. #:target "datatables-plugins/features/searchHighlight/source.min.js")
  3459. (minify (assoc-ref inputs "js-nouislider")
  3460. #:target "nouislider/jquery.nouislider.min.js")
  3461. (let ((replace-file (lambda (old new)
  3462. (format #t "replacing ~a with ~a\n" old new)
  3463. (symlink new old))))
  3464. (replace-file "selectize/selectize.min.js"
  3465. (string-append (assoc-ref inputs "js-selectize")
  3466. "/share/javascript/selectize.min.js")))))))))
  3467. (propagated-inputs
  3468. (list r-crosstalk
  3469. r-htmltools
  3470. r-htmlwidgets
  3471. r-jquerylib
  3472. r-jsonlite
  3473. r-magrittr
  3474. r-promises))
  3475. (inputs
  3476. (list js-selectize))
  3477. (native-inputs
  3478. `(("r-knitr" ,r-knitr)
  3479. ("uglifyjs" ,node-uglify-js)
  3480. ("datatables-plugins"
  3481. ,(let ((version "1.10.20"))
  3482. (origin
  3483. (method git-fetch)
  3484. (uri (git-reference
  3485. (url "https://github.com/DataTables/Plugins.git")
  3486. (commit version)))
  3487. (file-name (git-file-name "datatables-plugins" version))
  3488. (sha256
  3489. (base32
  3490. "05zni20863ml1711lfllljdfkb3k05h0kpqhkijkbp0bp7q0ak94")))))
  3491. ("js-nouislider"
  3492. ,(let ((version "7.0.10"))
  3493. (origin
  3494. (method url-fetch)
  3495. (uri (string-append "https://raw.githubusercontent.com/leongersen/noUiSlider/"
  3496. version "/distribute/jquery.nouislider.js"))
  3497. (sha256
  3498. (base32
  3499. "1f7vsfcn7wwzngib6j0wpl0psd6qriiaa6kv728ynfn5da73zfxm")))))
  3500. ,@(map (match-lambda
  3501. ((url hash dir)
  3502. `(,(string-append "js:" (basename url))
  3503. ,(origin (method url-fetch)
  3504. (uri url)
  3505. (sha256 (base32 hash))))))
  3506. javascript-sources)))
  3507. (home-page "https://rstudio.github.io/DT")
  3508. (synopsis "R wrapper of the DataTables JavaScript library")
  3509. (description
  3510. "This package allows for data objects in R to be rendered as HTML tables
  3511. using the JavaScript library @code{DataTables} (typically via R Markdown or
  3512. Shiny). The @code{DataTables} library has been included in this R package.")
  3513. ;; The DT package as a whole is distributed under GPLv3. The DT package
  3514. ;; inludes other software components under different licenses:
  3515. ;;
  3516. ;; * Expat: jquery.highlight.js, DataTables
  3517. ;; * WTFPL: noUiSlider
  3518. (license (list license:gpl3
  3519. license:expat
  3520. license:wtfpl2)))))
  3521. (define-public r-base64enc
  3522. (package
  3523. (name "r-base64enc")
  3524. (version "0.1-3")
  3525. (source (origin
  3526. (method url-fetch)
  3527. (uri (cran-uri "base64enc" version))
  3528. (sha256
  3529. (base32
  3530. "13b89fhg1nx7zds82a0biz847ixphg9byf5zl2cw9kab6s56v1bd"))))
  3531. (build-system r-build-system)
  3532. (home-page "https://www.rforge.net/base64enc")
  3533. (synopsis "Tools for Base64 encoding")
  3534. (description
  3535. "This package provides tools for handling Base64 encoding. It is more
  3536. flexible than the orphaned \"base64\" package.")
  3537. (license license:gpl2+)))
  3538. (define-public r-irlba
  3539. (package
  3540. (name "r-irlba")
  3541. (version "2.3.5")
  3542. (source
  3543. (origin
  3544. (method url-fetch)
  3545. (uri (cran-uri "irlba" version))
  3546. (sha256
  3547. (base32
  3548. "1fcv4vazg2sbsda8qqjjsjn2wagcp2bsahvznwm443j66q6qrz16"))))
  3549. (build-system r-build-system)
  3550. (propagated-inputs
  3551. (list r-matrix))
  3552. (home-page "https://cran.r-project.org/web/packages/irlba")
  3553. (synopsis "Methods for eigendecomposition of large matrices")
  3554. (description
  3555. "This package provides fast and memory efficient methods for truncated
  3556. singular and eigenvalue decompositions, as well as for principal component
  3557. analysis of large sparse or dense matrices.")
  3558. (license (list license:gpl2+ license:gpl3+))))
  3559. (define-public r-glmnet
  3560. (package
  3561. (name "r-glmnet")
  3562. (version "4.1-3")
  3563. (source
  3564. (origin
  3565. (method url-fetch)
  3566. (uri (cran-uri "glmnet" version))
  3567. (sha256
  3568. (base32 "0nij8v44b5dvp1vc843sfkl9ds83n6g687m2p37q1rdn82m3bg34"))))
  3569. (build-system r-build-system)
  3570. (native-inputs
  3571. (list gfortran r-knitr))
  3572. (propagated-inputs
  3573. (list r-foreach
  3574. r-matrix
  3575. r-rcpp
  3576. r-rcppeigen
  3577. r-shape
  3578. r-survival))
  3579. (home-page "https://www.jstatsoft.org/article/view/v033i01")
  3580. (synopsis "Lasso and elastic-net regularized generalized linear models")
  3581. (description
  3582. "The glmnet package provides efficient procedures for fitting the entire
  3583. lasso or elastic-net regularization path for linear and Poisson regression, as
  3584. well as logistic, multinomial, Cox, multiple-response Gaussian and grouped
  3585. multinomial models. The algorithm uses cyclical coordinate descent in a
  3586. path-wise fashion.")
  3587. (license license:gpl2+)))
  3588. (define-public r-pkgmaker
  3589. (package
  3590. (name "r-pkgmaker")
  3591. (version "0.32.2")
  3592. (source
  3593. (origin
  3594. (method url-fetch)
  3595. (uri (cran-uri "pkgmaker" version))
  3596. (sha256
  3597. (base32
  3598. "14ggsd24n5g5rvn0wl4w90ipxzmywqikh28llj89q6kpxwnv4iff"))))
  3599. (build-system r-build-system)
  3600. (propagated-inputs
  3601. (list r-assertthat
  3602. r-codetools
  3603. r-digest
  3604. r-registry
  3605. r-stringr
  3606. r-withr
  3607. r-xtable))
  3608. (home-page "https://renozao.github.io/pkgmaker")
  3609. (synopsis "Package development utilities")
  3610. (description
  3611. "This package provides some low-level utilities to use for R package
  3612. development. It currently provides managers for multiple package specific
  3613. options and registries, vignette, unit test and bibtex related utilities.")
  3614. (license license:gpl2+)))
  3615. (define-public r-registry
  3616. (package
  3617. (name "r-registry")
  3618. (version "0.5-1")
  3619. (source
  3620. (origin
  3621. (method url-fetch)
  3622. (uri (cran-uri "registry" version))
  3623. (sha256
  3624. (base32
  3625. "1k3j6dx350awamr0dwwgkhfs46vsnj4nf08iw5byq0x7n3nkdsnz"))))
  3626. (build-system r-build-system)
  3627. (home-page "https://cran.r-project.org/web/packages/registry")
  3628. (synopsis "Infrastructure for R package registries")
  3629. (description
  3630. "This package provides a generic infrastructure for creating and using R
  3631. package registries.")
  3632. (license license:gpl2+)))
  3633. (define-public r-rngtools
  3634. (package
  3635. (name "r-rngtools")
  3636. (version "1.5.2")
  3637. (source
  3638. (origin
  3639. (method url-fetch)
  3640. (uri (cran-uri "rngtools" version))
  3641. (sha256
  3642. (base32
  3643. "0kd7x214cqw7hzpmk1iqy1bn7j6x0ady0yz2hsdbclbq9k57d33z"))))
  3644. (build-system r-build-system)
  3645. (propagated-inputs
  3646. (list r-digest))
  3647. (home-page "https://renozao.github.io/rngtools")
  3648. (synopsis "Utility functions for working with random number generators")
  3649. (description
  3650. "This package contains a set of functions for working with Random Number
  3651. Generators (RNGs). In particular, it defines a generic S4 framework for
  3652. getting/setting the current RNG, or RNG data that are embedded into objects
  3653. for reproducibility. Notably, convenient default methods greatly facilitate
  3654. the way current RNG settings can be changed.")
  3655. (license license:gpl3+)))
  3656. (define-public r-rtsne
  3657. (package
  3658. (name "r-rtsne")
  3659. (version "0.15")
  3660. (source
  3661. (origin
  3662. (method url-fetch)
  3663. (uri (cran-uri "Rtsne" version))
  3664. (sha256
  3665. (base32
  3666. "0v17vxizrs1msay24xl2bckfajr2c82wpqj07lyssbrq197nwdsn"))))
  3667. (properties `((upstream-name . "Rtsne")))
  3668. (build-system r-build-system)
  3669. (propagated-inputs
  3670. (list r-rcpp))
  3671. (home-page "https://github.com/jkrijthe/Rtsne")
  3672. (synopsis "T-distributed stochastic neighbor embedding")
  3673. (description
  3674. "This package provides an R wrapper around the fast T-distributed
  3675. Stochastic Neighbor Embedding using a Barnes-Hut implementation.")
  3676. ;; The declared license for this package is BSD-3, but it also includes
  3677. ;; code licensed under BSD-4.
  3678. (license (list license:bsd-3 license:bsd-4))))
  3679. (define-public r-e1071
  3680. (package
  3681. (name "r-e1071")
  3682. (version "1.7-9")
  3683. (source
  3684. (origin
  3685. (method url-fetch)
  3686. (uri (cran-uri "e1071" version))
  3687. (sha256
  3688. (base32
  3689. "09i2hmyf1bxansqp24p9n9djlzzarclqs173gjjv3fg0giga3ycv"))))
  3690. (build-system r-build-system)
  3691. (propagated-inputs
  3692. (list r-class r-proxy))
  3693. (home-page "https://cran.r-project.org/web/packages/e1071")
  3694. (synopsis "Miscellaneous functions for probability theory")
  3695. (description
  3696. "This package provides functions for latent class analysis, short time
  3697. Fourier transform, fuzzy clustering, support vector machines, shortest path
  3698. computation, bagged clustering, naive Bayes classifier, and more.")
  3699. (license license:gpl2+)))
  3700. (define-public r-bigmemory-sri
  3701. (package
  3702. (name "r-bigmemory-sri")
  3703. (version "0.1.3")
  3704. (source
  3705. (origin
  3706. (method url-fetch)
  3707. (uri (cran-uri "bigmemory.sri" version))
  3708. (sha256
  3709. (base32 "0mg14ilwdkd64q2ri9jdwnk7mp55dqim7xfifrs65sdsv1934h2m"))))
  3710. (properties
  3711. `((upstream-name . "bigmemory.sri")))
  3712. (build-system r-build-system)
  3713. (home-page "https://cran.r-project.org/web/packages/bigmemory.sri")
  3714. (synopsis "Shared resource interface for the bigmemory package")
  3715. (description "This package provides a shared resource interface for the
  3716. bigmemory and synchronicity packages.")
  3717. ;; Users can choose either LGPLv3 or ASL2.0.
  3718. (license (list license:lgpl3 license:asl2.0))))
  3719. (define-public r-synchronicity
  3720. (package
  3721. (name "r-synchronicity")
  3722. (version "1.3.5")
  3723. (source
  3724. (origin
  3725. (method url-fetch)
  3726. (uri (cran-uri "synchronicity" version))
  3727. (sha256
  3728. (base32
  3729. "1kgsk64aifjm3mfj102y3va7x1abypq2zi0cqbnjhl8fqyzp69hx"))))
  3730. (build-system r-build-system)
  3731. (propagated-inputs
  3732. (list r-bh r-bigmemory-sri r-rcpp r-uuid))
  3733. (home-page "http://www.bigmemory.org")
  3734. (synopsis "Boost mutex functionality in R")
  3735. (description "This package provides support for synchronization
  3736. via mutexes and may eventually support interprocess communication and
  3737. message passing.")
  3738. ;; Users can choose either LGPLv3 or ASL2.0.
  3739. (license (list license:lgpl3 license:asl2.0))))
  3740. (define-public r-bigmemory
  3741. (package
  3742. (name "r-bigmemory")
  3743. (version "4.5.36")
  3744. (source
  3745. (origin
  3746. (method url-fetch)
  3747. (uri (cran-uri "bigmemory" version))
  3748. (sha256
  3749. (base32
  3750. "03pg8mxdc7q0249visjmc8bc3xmwxsfg3i2n6higicj4cfz7zihq"))))
  3751. (build-system r-build-system)
  3752. (propagated-inputs
  3753. (list r-bh r-rcpp r-bigmemory-sri))
  3754. (home-page "http://www.bigmemory.org")
  3755. (synopsis "Manage large matrices with shared memory or memory-mapped files")
  3756. (description "This package provides methods to create, store, access, and
  3757. manipulate large matrices. Matrices are allocated to shared memory and may use
  3758. memory-mapped files.")
  3759. ;; Users can choose either LGPLv3 or ASL2.0.
  3760. (license (list license:lgpl3 license:asl2.0))))
  3761. (define-public r-r-methodss3
  3762. (package
  3763. (name "r-r-methodss3")
  3764. (version "1.8.1")
  3765. (source (origin
  3766. (method url-fetch)
  3767. (uri (cran-uri "R.methodsS3" version))
  3768. (sha256
  3769. (base32
  3770. "16v1br7lf7vxv40z65giv9jnqkpnyqagcmgqa0s1jy7spj0zp64a"))))
  3771. (properties `((upstream-name . "R.methodsS3")))
  3772. (build-system r-build-system)
  3773. (home-page "https://cran.r-project.org/web/packages/R.methodsS3")
  3774. (synopsis "S3 methods simplified")
  3775. (description
  3776. "This package provides methods that simplify the setup of S3 generic
  3777. functions and S3 methods. Major effort has been made in making definition of
  3778. methods as simple as possible with a minimum of maintenance for package
  3779. developers. For example, generic functions are created automatically, if
  3780. missing, and naming conflict are automatically solved, if possible. The
  3781. method @code{setMethodS3()} is a good start for those who in the future may
  3782. want to migrate to S4.")
  3783. (license license:lgpl2.1+)))
  3784. (define-public r-r-oo
  3785. (package
  3786. (name "r-r-oo")
  3787. (version "1.24.0")
  3788. (source (origin
  3789. (method url-fetch)
  3790. (uri (cran-uri "R.oo" version))
  3791. (sha256
  3792. (base32
  3793. "1divisff26fmiqg6vmabnwlrx079c066r8qvkakfp336vnwdm89p"))))
  3794. (properties `((upstream-name . "R.oo")))
  3795. (build-system r-build-system)
  3796. (propagated-inputs
  3797. (list r-r-methodss3))
  3798. (home-page "https://github.com/HenrikBengtsson/R.oo")
  3799. (synopsis "R object-oriented programming with or without references")
  3800. (description
  3801. "This package provides methods and classes for object-oriented
  3802. programming in R with or without references. Large effort has been made on
  3803. making definition of methods as simple as possible with a minimum of
  3804. maintenance for package developers.")
  3805. (license license:lgpl2.1+)))
  3806. (define-public r-r-utils
  3807. (package
  3808. (name "r-r-utils")
  3809. (version "2.11.0")
  3810. (source (origin
  3811. (method url-fetch)
  3812. (uri (cran-uri "R.utils" version))
  3813. (sha256
  3814. (base32
  3815. "1n7y4dzls7dc8fdkm9zncq4cpiblb2a9vwirwjkf72zpjpwn0a32"))))
  3816. (properties `((upstream-name . "R.utils")))
  3817. (build-system r-build-system)
  3818. (propagated-inputs
  3819. (list r-r-methodss3 r-r-oo))
  3820. (home-page "https://github.com/HenrikBengtsson/R.utils")
  3821. (synopsis "Various programming utilities")
  3822. (description
  3823. "This package provides utility functions useful when programming and
  3824. developing R packages.")
  3825. (license license:lgpl2.1+)))
  3826. (define-public r-r-cache
  3827. (package
  3828. (name "r-r-cache")
  3829. (version "0.15.0")
  3830. (source (origin
  3831. (method url-fetch)
  3832. (uri (cran-uri "R.cache" version))
  3833. (sha256
  3834. (base32
  3835. "09pipn1974ivjh4sm3n5fjlh31rilf87p30qwq7y25vriyqd7d5d"))))
  3836. (properties `((upstream-name . "R.cache")))
  3837. (build-system r-build-system)
  3838. (arguments
  3839. `(#:phases
  3840. (modify-phases %standard-phases
  3841. (add-after 'unpack 'set-HOME
  3842. (lambda _ (setenv "HOME" "/tmp"))))))
  3843. (propagated-inputs
  3844. (list r-digest r-r-methodss3 r-r-oo r-r-utils))
  3845. (home-page "https://github.com/HenrikBengtsson/R.cache")
  3846. (synopsis "Light-weight caching of objects and results")
  3847. (description
  3848. "This package provides methods for caching or memoization of objects and
  3849. results. With this package, any R object can be cached in a key-value storage
  3850. where the key can be an arbitrary set of R objects. The cache memory is
  3851. persistent (on the file system).")
  3852. (license license:lgpl2.1+)))
  3853. (define-public r-r-rsp
  3854. (package
  3855. (name "r-r-rsp")
  3856. (version "0.44.0")
  3857. (source (origin
  3858. (method url-fetch)
  3859. (uri (cran-uri "R.rsp" version))
  3860. (sha256
  3861. (base32
  3862. "0n9sxrffahgxcc8h9vgxg5i446g14cibixpf82nkpm5bvidhfsc9"))))
  3863. (properties `((upstream-name . "R.rsp")))
  3864. (build-system r-build-system)
  3865. (arguments
  3866. `(#:phases
  3867. (modify-phases %standard-phases
  3868. (add-after 'unpack 'set-HOME
  3869. (lambda _ (setenv "HOME" "/tmp"))))))
  3870. (propagated-inputs
  3871. (list r-digest r-r-cache r-r-methodss3 r-r-oo r-r-utils))
  3872. (home-page "https://github.com/HenrikBengtsson/R.rsp")
  3873. (synopsis "Dynamic generation of scientific reports")
  3874. (description
  3875. "The RSP markup language provides a powerful markup for controlling the
  3876. content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr
  3877. documents (and more), e.g. @code{Today's date is <%=Sys.Date()%>}. Contrary
  3878. to many other literate programming languages, with RSP it is straightforward
  3879. to loop over mixtures of code and text sections, e.g. in month-by-month
  3880. summaries. RSP has also several preprocessing directives for incorporating
  3881. static and dynamic contents of external files (local or online) among other
  3882. things. RSP is ideal for self-contained scientific reports and R package
  3883. vignettes.")
  3884. (license license:lgpl2.1+)))
  3885. (define-public r-mvtnorm
  3886. (package
  3887. (name "r-mvtnorm")
  3888. (version "1.1-3")
  3889. (source (origin
  3890. (method url-fetch)
  3891. (uri (cran-uri "mvtnorm" version))
  3892. (sha256
  3893. (base32
  3894. "0j14q2bkc14v35s5k03sw44zsssrd2qjljlwzj014qxs74hk0kpz"))))
  3895. (build-system r-build-system)
  3896. (native-inputs
  3897. (list gfortran))
  3898. (home-page "http://mvtnorm.R-forge.R-project.org")
  3899. (synopsis "Package for multivariate normal and t-distributions")
  3900. (description "This package can compute multivariate normal and
  3901. t-probabilities, quantiles, random deviates and densities.")
  3902. (license license:gpl2)))
  3903. (define-public r-matrixstats
  3904. (package
  3905. (name "r-matrixstats")
  3906. (version "0.61.0")
  3907. (source (origin
  3908. (method url-fetch)
  3909. (uri (cran-uri "matrixStats" version))
  3910. (sha256
  3911. (base32
  3912. "16pxsba5i51ifbbgvxln2w6nigbwd3290b2ckgzn5bmib7nc1lyv"))))
  3913. (properties `((upstream-name . "matrixStats")))
  3914. (build-system r-build-system)
  3915. (arguments
  3916. `(#:phases
  3917. (modify-phases %standard-phases
  3918. (add-after 'unpack 'set-HOME
  3919. (lambda _ (setenv "HOME" "/tmp"))))))
  3920. (native-inputs
  3921. (list r-r-rsp)) ;used to build vignettes
  3922. (home-page "https://github.com/HenrikBengtsson/matrixStats")
  3923. (synopsis "Methods applying to vectors and matrix rows and columns")
  3924. (description
  3925. "This package provides methods operating on rows and columns of matrices,
  3926. e.g. @code{rowMedians()}, @code{rowRanks()}, and @code{rowSds()}. There are
  3927. also some vector-based methods, e.g. @code{binMeans()}, @code{madDiff()} and
  3928. @code{weightedMedians()}. All methods have been optimized for speed and
  3929. memory usage.")
  3930. (license license:artistic2.0)))
  3931. (define-public r-viridis
  3932. (package
  3933. (name "r-viridis")
  3934. (version "0.6.2")
  3935. (source (origin
  3936. (method url-fetch)
  3937. (uri (cran-uri "viridis" version))
  3938. (sha256
  3939. (base32
  3940. "048kwhbhd49g86cq11fl7vm0whwhjl5gs9xjn040lwcjv78qrdb9"))))
  3941. (build-system r-build-system)
  3942. (propagated-inputs
  3943. (list r-ggplot2 r-gridextra r-viridislite))
  3944. (native-inputs
  3945. (list r-knitr)) ; for vignettes
  3946. (home-page "https://github.com/sjmgarnier/viridis")
  3947. (synopsis "Matplotlib default color map")
  3948. (description
  3949. "This package is a port of the new @url{matplotlib,
  3950. http://matplotlib.org/} color maps (@code{viridis}--the default--,
  3951. @code{magma}, @code{plasma}, and @code{inferno}) to R. These color maps are
  3952. designed in such a way that they will analytically be perfectly
  3953. perceptually-uniform, both in regular form and also when converted to
  3954. black-and-white. They are also designed to be perceived by readers with the
  3955. most common form of color blindness.")
  3956. (license license:x11)))
  3957. (define-public r-viridislite
  3958. (package
  3959. (name "r-viridislite")
  3960. (version "0.4.0")
  3961. (source
  3962. (origin
  3963. (method url-fetch)
  3964. (uri (cran-uri "viridisLite" version))
  3965. (sha256
  3966. (base32
  3967. "0siwr0vq80gs3sbyd542zjb0cl9av5zqdm0fqnym5g6ribf5b6c4"))))
  3968. (properties `((upstream-name . "viridisLite")))
  3969. (build-system r-build-system)
  3970. (home-page "https://github.com/sjmgarnier/viridisLite")
  3971. (synopsis "Default color maps from matplotlib")
  3972. (description
  3973. "This package is a port of the new @code{matplotlib} color maps
  3974. (@code{viridis}, @code{magma}, @code{plasma} and @code{inferno}) to R.
  3975. matplotlib is a popular plotting library for Python. These color maps are
  3976. designed in such a way that they will analytically be perfectly
  3977. perceptually-uniform, both in regular form and also when converted to
  3978. black-and-white. They are also designed to be perceived by readers with the
  3979. most common form of color blindness. This is the @code{lite} version of the
  3980. more complete @code{viridis} package.")
  3981. (license license:expat)))
  3982. (define-public r-tidyselect
  3983. (package
  3984. (name "r-tidyselect")
  3985. (version "1.1.2")
  3986. (source
  3987. (origin
  3988. (method url-fetch)
  3989. (uri (cran-uri "tidyselect" version))
  3990. (sha256
  3991. (base32
  3992. "0w423pmg9wjx6q2rnp2ap66323rxvpmzd4nnsqq4m58pajqs7283"))))
  3993. (build-system r-build-system)
  3994. (propagated-inputs
  3995. (list r-ellipsis r-glue r-purrr r-rlang r-vctrs))
  3996. (native-inputs
  3997. (list r-knitr))
  3998. (home-page "https://cran.r-project.org/web/packages/tidyselect")
  3999. (synopsis "Select from a set of strings")
  4000. (description
  4001. "This package provides a backend for the selecting functions of the
  4002. tidyverse. It makes it easy to implement select-like functions in your own
  4003. packages in a way that is consistent with other tidyverse interfaces for
  4004. selection.")
  4005. (license license:gpl3)))
  4006. (define-public r-tidyr
  4007. (package
  4008. (name "r-tidyr")
  4009. (version "1.2.0")
  4010. (source
  4011. (origin
  4012. (method url-fetch)
  4013. (uri (cran-uri "tidyr" version))
  4014. (sha256
  4015. (base32
  4016. "1a0k296a0jb2xi5zgfrqfmmw8197bwibjl7a04fm49vqx6livl4c"))))
  4017. (build-system r-build-system)
  4018. (propagated-inputs
  4019. (list r-cpp11
  4020. r-dplyr
  4021. r-ellipsis
  4022. r-magrittr
  4023. r-glue
  4024. r-lifecycle
  4025. r-purrr
  4026. r-rlang
  4027. r-tidyselect
  4028. r-tibble
  4029. r-vctrs))
  4030. (native-inputs
  4031. (list r-knitr))
  4032. (home-page "https://github.com/hadley/tidyr")
  4033. (synopsis "Tidy data with `spread()` and `gather()` functions")
  4034. (description
  4035. "tidyr is a reframing of the reshape2 package designed to accompany the
  4036. tidy data framework, and to work hand-in-hand with magrittr and dplyr to build
  4037. a solid pipeline for data analysis. It is designed specifically for tidying
  4038. data, not the general reshaping that reshape2 does, or the general aggregation
  4039. that reshape did. In particular, built-in methods only work for data frames,
  4040. and tidyr provides no margins or aggregation.")
  4041. (license license:expat)))
  4042. (define-public r-hexbin
  4043. (package
  4044. (name "r-hexbin")
  4045. (version "1.28.2")
  4046. (source
  4047. (origin
  4048. (method url-fetch)
  4049. (uri (cran-uri "hexbin" version))
  4050. (sha256
  4051. (base32
  4052. "0bbhs5pwxh474w62sq6gqvih7habancxng9wd4f2rgn6lv9zhhb2"))))
  4053. (build-system r-build-system)
  4054. (propagated-inputs
  4055. (list r-lattice))
  4056. (native-inputs
  4057. (list gfortran r-knitr)) ; for vignettes
  4058. (home-page "https://github.com/edzer/hexbin")
  4059. (synopsis "Hexagonal binning routines")
  4060. (description
  4061. "This package provides binning and plotting functions for hexagonal bins.
  4062. It uses and relies on grid graphics and formal (S4) classes and methods.")
  4063. (license license:gpl2+)))
  4064. (define-public r-purrr
  4065. (package
  4066. (name "r-purrr")
  4067. (version "0.3.4")
  4068. (source
  4069. (origin
  4070. (method url-fetch)
  4071. (uri (cran-uri "purrr" version))
  4072. (sha256
  4073. (base32
  4074. "1cj091rsjdj2xz16qhynyw72gh5cyhznifcfbrbygndfr4xwksr3"))))
  4075. (build-system r-build-system)
  4076. (propagated-inputs
  4077. (list r-magrittr r-rlang))
  4078. (native-inputs
  4079. (list r-knitr))
  4080. (home-page "https://github.com/hadley/purrr")
  4081. (synopsis "Functional programming tools")
  4082. (description
  4083. "This package completes R's functional programming tools with missing
  4084. features present in other programming languages.")
  4085. (license license:gpl3+)))
  4086. (define-public r-plotly
  4087. (package
  4088. (name "r-plotly")
  4089. (version "4.10.0")
  4090. (source (origin
  4091. (method url-fetch)
  4092. (uri (cran-uri "plotly" version))
  4093. (sha256
  4094. (base32
  4095. "16iqj7sv49mva6siibsci7iijsbnk7pqvfns9al0k35w9mjmr6dx"))))
  4096. (build-system r-build-system)
  4097. (propagated-inputs
  4098. (list r-base64enc
  4099. r-crosstalk
  4100. r-digest
  4101. r-data-table
  4102. r-dplyr
  4103. r-ggplot2
  4104. r-htmltools
  4105. r-htmlwidgets
  4106. r-httr
  4107. r-jsonlite
  4108. r-lazyeval
  4109. r-magrittr
  4110. r-promises
  4111. r-purrr
  4112. r-rcolorbrewer
  4113. r-rlang
  4114. r-scales
  4115. r-tibble
  4116. r-tidyr
  4117. r-vctrs
  4118. r-viridislite))
  4119. (home-page "https://plot.ly/r")
  4120. (synopsis "Create interactive web graphics")
  4121. (description
  4122. "This package enables the translation of ggplot2 graphs to an interactive
  4123. web-based version and/or the creation of custom web-based visualizations
  4124. directly from R. Once uploaded to a plotly account, plotly graphs (and the
  4125. data behind them) can be viewed and modified in a web browser.")
  4126. (license license:x11)))
  4127. (define-public r-biased-urn
  4128. (package
  4129. (name "r-biased-urn")
  4130. (version "1.07")
  4131. (source
  4132. (origin
  4133. (method url-fetch)
  4134. (uri (cran-uri "BiasedUrn" version))
  4135. (sha256
  4136. (base32
  4137. "13i2lgfnjhlbbm2yxfc2l5hswqw6x03pwba5csjmirv8kpjw4xr3"))))
  4138. (properties `((upstream-name . "BiasedUrn")))
  4139. (build-system r-build-system)
  4140. (home-page "https://www.agner.org/random/")
  4141. (synopsis "Biased urn model distributions")
  4142. (description
  4143. "This package provides statistical models of biased sampling in the form
  4144. of univariate and multivariate noncentral hypergeometric distributions,
  4145. including Wallenius' noncentral hypergeometric distribution and Fisher's
  4146. noncentral hypergeometric distribution (also called extended hypergeometric
  4147. distribution).")
  4148. (license license:gpl3+)))
  4149. (define-public r-rematch
  4150. (package
  4151. (name "r-rematch")
  4152. (version "1.0.1")
  4153. (source
  4154. (origin
  4155. (method url-fetch)
  4156. (uri (cran-uri "rematch" version))
  4157. (sha256
  4158. (base32
  4159. "0y3mshvpvz9csmq8hk8jbabx4nxlv5sckvfzvm6920ndg34xw2d4"))))
  4160. (build-system r-build-system)
  4161. (home-page "https://github.com/MangoTheCat/rematch")
  4162. (synopsis "Match regular expressions with a nicer API")
  4163. (description
  4164. "This package provides a small wrapper on @code{regexpr} to extract the
  4165. matches and captured groups from the match of a regular expression to a
  4166. character vector.")
  4167. (license license:expat)))
  4168. (define-public r-cellranger
  4169. (package
  4170. (name "r-cellranger")
  4171. (version "1.1.0")
  4172. (source
  4173. (origin
  4174. (method url-fetch)
  4175. (uri (cran-uri "cellranger" version))
  4176. (sha256
  4177. (base32
  4178. "16fgi3annn34c3cxi0pxf62mmmmxi21hp0zzlv7bkfsjqy4g4f2x"))))
  4179. (build-system r-build-system)
  4180. (propagated-inputs
  4181. (list r-rematch r-tibble))
  4182. (home-page "https://github.com/rsheets/cellranger")
  4183. (synopsis "Translate spreadsheet cell ranges to rows and columns")
  4184. (description
  4185. "This package provides helper functions to work with spreadsheets and the
  4186. @code{A1:D10} style of cell range specification.")
  4187. (license license:expat)))
  4188. (define-public r-googlesheets
  4189. (package
  4190. (name "r-googlesheets")
  4191. (version "0.3.0")
  4192. (source
  4193. (origin
  4194. (method url-fetch)
  4195. (uri (cran-uri "googlesheets" version))
  4196. (sha256
  4197. (base32
  4198. "11q07nxys72wkxx9mawmjyf20gvwvrb7h3gpa73h6lgh2vgrwnv8"))))
  4199. (build-system r-build-system)
  4200. (propagated-inputs
  4201. (list r-cellranger
  4202. r-dplyr
  4203. r-httr
  4204. r-jsonlite
  4205. r-purrr
  4206. r-readr
  4207. r-stringr
  4208. r-tibble
  4209. r-tidyr
  4210. r-xml2))
  4211. (home-page "https://github.com/jennybc/googlesheets")
  4212. (synopsis "Manage Google spreadsheets from R")
  4213. (description "This package provides tools to interact with Google Sheets
  4214. from within R.")
  4215. (license license:expat)))
  4216. (define-public r-spams
  4217. (package
  4218. (name "r-spams")
  4219. (version "2.6-2017-03-22")
  4220. (source
  4221. (origin
  4222. (method url-fetch)
  4223. ;; Use the ‘Latest version’ link for a stable URI across releases.
  4224. (uri (string-append "https://gforge.inria.fr/frs/download.php/"
  4225. "latestfile/4531/spams-R-v" version ".tar.gz"))
  4226. (sha256
  4227. (base32
  4228. "13z2293jixf1r9g8dyy856xrhvpjr2ln2n9smn6644126r9hmhkx"))))
  4229. (build-system r-build-system)
  4230. (arguments
  4231. `(#:phases
  4232. (modify-phases %standard-phases
  4233. (add-after 'unpack 'chdir
  4234. (lambda _ (chdir "spams") #t))
  4235. ;; Don't tune for the building machine.
  4236. (add-after 'chdir 'no-mtune
  4237. (lambda _
  4238. (substitute* "src/Makevars"
  4239. (("-mtune=native") ""))
  4240. #t)))))
  4241. (propagated-inputs
  4242. (list r-lattice r-matrix))
  4243. (home-page "https://spams-devel.gforge.inria.fr")
  4244. (synopsis "Toolbox for solving sparse estimation problems")
  4245. (description "SPAMS (SPArse Modeling Software) is an optimization toolbox
  4246. for solving various sparse estimation problems. It includes tools for the
  4247. following problems:
  4248. @enumerate
  4249. @item Dictionary learning and matrix factorization (NMF, sparse @dfn{principle
  4250. component analysis} (PCA), ...)
  4251. @item Solving sparse decomposition problems with LARS, coordinate descent,
  4252. OMP, SOMP, proximal methods
  4253. @item Solving structured sparse decomposition problems (l1/l2, l1/linf, sparse
  4254. group lasso, tree-structured regularization, structured sparsity with
  4255. overlapping groups,...).
  4256. @end enumerate\n")
  4257. (license license:gpl3+)))
  4258. (define-public r-base64
  4259. (package
  4260. (name "r-base64")
  4261. (version "2.0")
  4262. (source
  4263. (origin
  4264. (method url-fetch)
  4265. (uri (cran-uri "base64" version))
  4266. (sha256
  4267. (base32
  4268. "1labh0ycdm2xcjssj8bhnyjvbk44mcdsi0rb2p8rfqa428mrq9cf"))))
  4269. (build-system r-build-system)
  4270. (propagated-inputs
  4271. (list r-openssl))
  4272. (home-page "https://cran.r-project.org/web/packages/base64")
  4273. (synopsis "Base64 encoder and decoder")
  4274. (description
  4275. "This package is a compatibility wrapper to replace the orphaned package
  4276. by Romain Francois. New applications should use the openssl or base64enc
  4277. package instead.")
  4278. (license license:expat)))
  4279. (define-public r-hmisc
  4280. (package
  4281. (name "r-hmisc")
  4282. (version "4.6-0")
  4283. (source
  4284. (origin
  4285. (method url-fetch)
  4286. (uri (cran-uri "Hmisc" version))
  4287. (sha256
  4288. (base32 "1bd1c8sichyijprfpnqj5g72nmgs9jvi0zyw8v4nsg1kn83fj71c"))))
  4289. (properties `((upstream-name . "Hmisc")))
  4290. (build-system r-build-system)
  4291. (native-inputs
  4292. (list gfortran))
  4293. (propagated-inputs
  4294. (list r-base64enc
  4295. r-cluster
  4296. r-data-table
  4297. r-foreign
  4298. r-formula
  4299. r-ggplot2
  4300. r-gridextra
  4301. r-gtable
  4302. r-lattice
  4303. r-latticeextra
  4304. r-htmltable
  4305. r-htmltools
  4306. r-nnet
  4307. r-rpart
  4308. r-survival
  4309. r-viridis))
  4310. (home-page "http://biostat.mc.vanderbilt.edu/Hmisc")
  4311. (synopsis "Miscellaneous data analysis and graphics functions")
  4312. (description
  4313. "This package contains many functions useful for data analysis,
  4314. high-level graphics, utility operations, functions for computing sample size
  4315. and power, importing and annotating datasets, imputing missing values,
  4316. advanced table making, variable clustering, character string manipulation,
  4317. conversion of R objects to LaTeX code, and recoding variables.")
  4318. (license license:gpl2+)))
  4319. (define-public r-runit
  4320. (package
  4321. (name "r-runit")
  4322. (version "0.4.32")
  4323. (source
  4324. (origin
  4325. (method url-fetch)
  4326. (uri (cran-uri "RUnit" version))
  4327. (sha256
  4328. (base32
  4329. "1wc1gwb7yw7phf8b0gkig6c23klya3ax11c6i4s0f049k42r78r3"))))
  4330. (properties `((upstream-name . "RUnit")))
  4331. (build-system r-build-system)
  4332. (home-page "https://cran.r-project.org/web/packages/RUnit")
  4333. (synopsis "R unit test framework")
  4334. (description
  4335. "This package provides R functions implementing a standard unit testing
  4336. framework, with additional code inspection and report generation tools.")
  4337. (license license:gpl2+)))
  4338. (define-public r-dynamictreecut
  4339. (package
  4340. (name "r-dynamictreecut")
  4341. (version "1.63-1")
  4342. (source
  4343. (origin
  4344. (method url-fetch)
  4345. (uri (cran-uri "dynamicTreeCut" version))
  4346. (sha256
  4347. (base32
  4348. "1fadbql7g5r2vvlkr89nlrjxwp4yx4xrdqmv077qvmnx9vv0f4w3"))))
  4349. (properties `((upstream-name . "dynamicTreeCut")))
  4350. (build-system r-build-system)
  4351. (home-page
  4352. "http://www.genetics.ucla.edu/labs/horvath/CoexpressionNetwork/BranchCutting/")
  4353. (synopsis "Detect clusters in hierarchical clustering dendrograms")
  4354. (description
  4355. "This package contains methods for the detection of clusters in
  4356. hierarchical clustering dendrograms.")
  4357. (license license:gpl2+)))
  4358. (define-public r-fastcluster
  4359. (package
  4360. (name "r-fastcluster")
  4361. (version "1.2.3")
  4362. (source
  4363. (origin
  4364. (method url-fetch)
  4365. (uri (cran-uri "fastcluster" version))
  4366. (sha256
  4367. (base32
  4368. "009amz7i5yndqw2008fgd3p11n4fsb291k2ypg3pip6dw4lr28hz"))))
  4369. (build-system r-build-system)
  4370. (home-page "http://danifold.net/fastcluster.html")
  4371. (synopsis "Fast hierarchical clustering routines")
  4372. (description
  4373. "This package implements fast hierarchical, agglomerative clustering
  4374. routines. Part of the functionality is designed as drop-in replacement for
  4375. existing routines: @code{linkage()} in the SciPy package
  4376. @code{scipy.cluster.hierarchy}, @code{hclust()} in R's @code{stats} package,
  4377. and the @code{flashClust} package. It provides the same functionality with
  4378. the benefit of a much faster implementation. Moreover, there are
  4379. memory-saving routines for clustering of vector data, which go beyond what the
  4380. existing packages provide.")
  4381. (license license:bsd-2)))
  4382. (define-public r-sfsmisc
  4383. (package
  4384. (name "r-sfsmisc")
  4385. (version "1.1-12")
  4386. (source
  4387. (origin
  4388. (method url-fetch)
  4389. (uri (cran-uri "sfsmisc" version))
  4390. (sha256
  4391. (base32
  4392. "10h76pgzcxv1y5pkmba9607lvjrsyq62sq63s2n7ry7z5151h4lv"))))
  4393. (build-system r-build-system)
  4394. (home-page "https://cran.r-project.org/web/packages/sfsmisc")
  4395. (synopsis "Utilities from \"Seminar fuer Statistik\" ETH Zurich")
  4396. (description
  4397. "This package provides useful utilities from Seminar fuer Statistik ETH
  4398. Zurich, including many that are related to graphics.")
  4399. (license license:gpl2+)))
  4400. (define-public r-gtools
  4401. (package
  4402. (name "r-gtools")
  4403. (version "3.9.2")
  4404. (source
  4405. (origin
  4406. (method url-fetch)
  4407. (uri (cran-uri "gtools" version))
  4408. (sha256
  4409. (base32
  4410. "0lx97yafrms2mjym8rhcq5586z7s1iqgy8qfm4px3xl1yn5qkc83"))))
  4411. (build-system r-build-system)
  4412. (home-page "https://cran.r-project.org/web/packages/gtools")
  4413. (synopsis "Various R programming tools")
  4414. (description
  4415. "This package contains a collection of various functions to assist in R
  4416. programming, such as tools to assist in developing, updating, and maintaining
  4417. R and R packages, calculating the logit and inverse logit transformations,
  4418. tests for whether a value is missing, empty or contains only @code{NA} and
  4419. @code{NULL} values, and many more.")
  4420. (license license:gpl2)))
  4421. (define-public r-gdata
  4422. (package
  4423. (name "r-gdata")
  4424. (version "2.18.0")
  4425. (source
  4426. (origin
  4427. (method url-fetch)
  4428. (uri (cran-uri "gdata" version))
  4429. (sha256
  4430. (base32
  4431. "0zwdj7lscgxr8r62ii8hbdh4mb7sa9w4f5nv32zzrxdvymcpya2b"))))
  4432. (build-system r-build-system)
  4433. (inputs
  4434. (list perl))
  4435. (propagated-inputs
  4436. (list r-gtools))
  4437. (home-page "https://cran.r-project.org/web/packages/gdata")
  4438. (synopsis "Various R programming tools for data manipulation")
  4439. (description
  4440. "This package provides various R programming tools for data manipulation,
  4441. including:
  4442. @itemize
  4443. @item medical unit conversions
  4444. @item combining objects
  4445. @item character vector operations
  4446. @item factor manipulation
  4447. @item obtaining information about R objects
  4448. @item manipulating MS-Excel formatted files
  4449. @item generating fixed-width format files
  4450. @item extricating components of date and time objects
  4451. @item operations on columns of data frames
  4452. @item matrix operations
  4453. @item operations on vectors and data frames
  4454. @item value of last evaluated expression
  4455. @item wrapper for @code{sample} that ensures consistent behavior for
  4456. both scalar and vector arguments
  4457. @end itemize\n")
  4458. (license license:gpl2+)))
  4459. (define-public r-gplots
  4460. (package
  4461. (name "r-gplots")
  4462. (version "3.1.1")
  4463. (source
  4464. (origin
  4465. (method url-fetch)
  4466. (uri (cran-uri "gplots" version))
  4467. (sha256
  4468. (base32
  4469. "0f8khaymz383w2ksnk80d4kpnvgmdk37pbycpsnl2vabaz11kbpr"))))
  4470. (build-system r-build-system)
  4471. (propagated-inputs
  4472. (list r-catools r-gtools r-kernsmooth))
  4473. (native-inputs
  4474. (list r-knitr))
  4475. (home-page "https://cran.r-project.org/web/packages/gplots")
  4476. (synopsis "Various R programming tools for plotting data")
  4477. (description
  4478. "This package provides various R programming tools for plotting data,
  4479. including:
  4480. @itemize
  4481. @item calculating and plotting locally smoothed summary function
  4482. @item enhanced versions of standard plots
  4483. @item manipulating colors
  4484. @item calculating and plotting two-dimensional data summaries
  4485. @item enhanced regression diagnostic plots
  4486. @item formula-enabled interface to @code{stats::lowess} function
  4487. @item displaying textual data in plots
  4488. @item balloon plots
  4489. @item plotting \"Venn\" diagrams
  4490. @item displaying Open-Office style plots
  4491. @item plotting multiple data on same region, with separate axes
  4492. @item plotting means and confidence intervals
  4493. @item spacing points in an x-y plot so they don't overlap
  4494. @end itemize\n")
  4495. (license license:gpl2+)))
  4496. (define-public r-rocr
  4497. (package
  4498. (name "r-rocr")
  4499. (version "1.0-11")
  4500. (source
  4501. (origin
  4502. (method url-fetch)
  4503. (uri (cran-uri "ROCR" version))
  4504. (sha256
  4505. (base32
  4506. "0amvvrkiflmr3qygrsgrsja4gaf2v6r6h6i2bgpsm8r069vmlf2p"))))
  4507. (properties `((upstream-name . "ROCR")))
  4508. (build-system r-build-system)
  4509. (propagated-inputs
  4510. (list r-gplots))
  4511. (native-inputs
  4512. (list r-knitr))
  4513. (home-page "https://rocr.bioinf.mpi-sb.mpg.de/")
  4514. (synopsis "Visualizing the performance of scoring classifiers")
  4515. (description
  4516. "ROCR is a flexible tool for creating cutoff-parameterized 2D performance
  4517. curves by freely combining two from over 25 performance measures (new
  4518. performance measures can be added using a standard interface). Curves from
  4519. different cross-validation or bootstrapping runs can be averaged by different
  4520. methods, and standard deviations, standard errors or box plots can be used to
  4521. visualize the variability across the runs. The parameterization can be
  4522. visualized by printing cutoff values at the corresponding curve positions, or
  4523. by coloring the curve according to cutoff. All components of a performance
  4524. plot can be quickly adjusted using a flexible parameter dispatching
  4525. mechanism.")
  4526. (license license:gpl2+)))
  4527. (define-public r-ztable
  4528. (package
  4529. (name "r-ztable")
  4530. (version "0.2.3")
  4531. (source (origin
  4532. (method url-fetch)
  4533. (uri (cran-uri "ztable" version))
  4534. (sha256
  4535. (base32
  4536. "1ps7ix0hc84s0p0ra6bkjxky3cffs1rvdcagqzj78lbdq22dk5j8"))))
  4537. (build-system r-build-system)
  4538. (propagated-inputs
  4539. (list r-flextable
  4540. r-magrittr
  4541. r-officer
  4542. r-rcolorbrewer
  4543. r-rstudioapi
  4544. r-scales
  4545. r-stringr))
  4546. (native-inputs
  4547. (list r-knitr))
  4548. (home-page "https://cran.r-project.org/web/packages/ztable")
  4549. (synopsis "Zebra-striped tables in LaTeX and HTML formats for R")
  4550. (description
  4551. "This package provides functions to make zebra-striped tables (tables
  4552. with alternating row colors) in LaTeX and HTML formats easily from
  4553. @code{data.frame}, @code{matrix}, @code{lm}, @code{aov}, @code{anova},
  4554. @code{glm}, @code{coxph}, @code{nls}, @code{fitdistr}, @code{mytable} and
  4555. @code{cbind.mytable} objects.")
  4556. (license license:gpl2+)))
  4557. (define-public r-vipor
  4558. (package
  4559. (name "r-vipor")
  4560. (version "0.4.5")
  4561. (source (origin
  4562. (method url-fetch)
  4563. (uri (cran-uri "vipor" version))
  4564. (sha256
  4565. (base32
  4566. "112gc0d7f8iavgf56pnzfxb7hy75yhd0zlyjzshdcfbnqcd2a6bx"))))
  4567. (build-system r-build-system)
  4568. (home-page "https://cran.r-project.org/web/packages/vipor")
  4569. (synopsis "Plot categorical data using noise and density estimates")
  4570. (description
  4571. "This package provides tools to generate a violin point plot, a
  4572. combination of a violin/histogram plot and a scatter plot by offsetting points
  4573. within a category based on their density using quasirandom noise.")
  4574. (license license:gpl2+)))
  4575. (define-public r-beeswarm
  4576. (package
  4577. (name "r-beeswarm")
  4578. (version "0.4.0")
  4579. (source (origin
  4580. (method url-fetch)
  4581. (uri (cran-uri "beeswarm" version))
  4582. (sha256
  4583. (base32
  4584. "016mqcbdksialkmap56rprzna9b6cd6896ml9gl2n2h8yjdk7x2i"))))
  4585. (build-system r-build-system)
  4586. (home-page "https://www.cbs.dtu.dk/~eklund/beeswarm/")
  4587. (synopsis "Implementation of bee swarm plots")
  4588. (description
  4589. "This package provides an implementation of bee swarm plots. The bee
  4590. swarm plot is a one-dimensional scatter plot like stripchart, but with
  4591. closely-packed, non-overlapping points.")
  4592. (license license:artistic2.0)))
  4593. (define-public r-sourcetools
  4594. (package
  4595. (name "r-sourcetools")
  4596. (version "0.1.7")
  4597. (source
  4598. (origin
  4599. (method url-fetch)
  4600. (uri (cran-uri "sourcetools" version))
  4601. (sha256
  4602. (base32
  4603. "1jnjir0q2dj724f1mjm6p5h77yzyx6xcqy9r2g7gmcxkxw349627"))))
  4604. (build-system r-build-system)
  4605. (home-page "https://cran.r-project.org/web/packages/sourcetools")
  4606. (synopsis "Tools for reading, tokenizing and parsing R code")
  4607. (description
  4608. "The sourcetools package provides both an R and C++ interface for the
  4609. tokenization of R code, and helpers for interacting with the tokenized
  4610. representation of R code.")
  4611. (license license:expat)))
  4612. (define-public r-ggbeeswarm
  4613. (package
  4614. (name "r-ggbeeswarm")
  4615. (version "0.6.0")
  4616. (source (origin
  4617. (method url-fetch)
  4618. (uri (cran-uri "ggbeeswarm" version))
  4619. (sha256
  4620. (base32
  4621. "0crk29p5vi1r3a988kms4y7r0iqwgwzsikgvh18r9wbzyr98bb5v"))))
  4622. (build-system r-build-system)
  4623. (propagated-inputs
  4624. (list r-beeswarm r-ggplot2 r-vipor))
  4625. (home-page "https://github.com/eclarke/ggbeeswarm")
  4626. (synopsis "Categorical scatter (violin point) plots")
  4627. (description
  4628. "This package provides two methods of plotting categorical scatter plots
  4629. such that the arrangement of points within a category reflects the density of
  4630. data at that region, and avoids over-plotting.")
  4631. (license license:gpl2+)))
  4632. (define-public r-ggthemes
  4633. (package
  4634. (name "r-ggthemes")
  4635. (version "4.2.4")
  4636. (source (origin
  4637. (method url-fetch)
  4638. (uri (cran-uri "ggthemes" version))
  4639. (sha256
  4640. (base32
  4641. "0rw5f6axyz1pqn6qx9jwm38hjzn8bqs1nfjkvm96z3xnyn61cdbv"))))
  4642. (build-system r-build-system)
  4643. (propagated-inputs
  4644. (list r-ggplot2 r-purrr r-scales r-stringr r-tibble))
  4645. (home-page "https://cran.rstudio.com/web/packages/ggthemes")
  4646. (synopsis "Extra themes, scales and geoms for @code{ggplot2}")
  4647. (description "This package provides extra themes and scales for
  4648. @code{ggplot2} that replicate the look of plots by Edward Tufte and
  4649. Stephen Few in Fivethirtyeight, The Economist, Stata, Excel, and The
  4650. Wall Street Journal, among others. This package also provides
  4651. @code{geoms} for Tufte's box plot and range frame.")
  4652. (license license:gpl2)))
  4653. (define-public r-statmod
  4654. (package
  4655. (name "r-statmod")
  4656. (version "1.4.36")
  4657. (source (origin
  4658. (method url-fetch)
  4659. (uri (cran-uri "statmod" version))
  4660. (sha256
  4661. (base32
  4662. "1hkvklcav6gj4zib4g3b4xwsdsbsmnzdblr0v6jaqv227p49gs0l"))))
  4663. (build-system r-build-system)
  4664. (home-page "https://cran.r-project.org/web/packages/statmod")
  4665. (native-inputs
  4666. (list gfortran))
  4667. (synopsis "Statistical modeling")
  4668. (description
  4669. "This package provides a collection of algorithms and functions to aid
  4670. statistical modeling. It includes growth curve comparisons, limiting dilution
  4671. analysis (aka ELDA), mixed linear models, heteroscedastic regression,
  4672. inverse-Gaussian probability calculations, Gauss quadrature and a secure
  4673. convergence algorithm for nonlinear models. It also includes advanced
  4674. generalized linear model functions that implement secure convergence,
  4675. dispersion modeling and Tweedie power-law families.")
  4676. ;; Statmod is distributed under either license
  4677. (license (list license:gpl2 license:gpl3))))
  4678. (define-public r-rann
  4679. (package
  4680. (name "r-rann")
  4681. (version "2.6.1")
  4682. (source (origin
  4683. (method url-fetch)
  4684. (uri (cran-uri "RANN" version))
  4685. (sha256
  4686. (base32
  4687. "10kid40w9w7vkz2hpcfkdpxr4afxzms5dzvfwr0sl5xynzgw76dj"))))
  4688. (properties
  4689. `((upstream-name . "RANN")))
  4690. (build-system r-build-system)
  4691. (home-page "https://github.com/jefferis/RANN")
  4692. (synopsis "Fast nearest neighbour search")
  4693. (description
  4694. "This package finds the k nearest neighbours for every point in a given
  4695. dataset in O(N log N) time using Arya and Mount's ANN library. Provides
  4696. approximate, exact searches, fixed radius searches, bd and kb trees.")
  4697. (license license:gpl3+)))
  4698. (define-public r-fivethirtyeight
  4699. (package
  4700. (name "r-fivethirtyeight")
  4701. (version "0.1.0")
  4702. (source
  4703. (origin
  4704. (method url-fetch)
  4705. (uri (string-append "https://mran.microsoft.com/src/contrib/"
  4706. "fivethirtyeight_" version ".tar.gz"))
  4707. (sha256
  4708. (base32
  4709. "0fcc8rq745nsghp27dk0lgih90y4zx8hrzcvsn6ih786yv7qxhvl"))))
  4710. (build-system r-build-system)
  4711. (propagated-inputs
  4712. (list r-knitr
  4713. r-rmarkdown
  4714. r-dplyr
  4715. r-readr
  4716. r-ggplot2
  4717. r-magrittr
  4718. r-stringr))
  4719. (home-page "https://mran.microsoft.com/package/fivethirtyeight/")
  4720. (synopsis "Data and code behind the stories at FiveThirtyEight")
  4721. (description "This R package provides access to the code and data sets
  4722. published by the statistics blog FiveThirtyEight.")
  4723. (license license:expat)))
  4724. (define-public r-compquadform
  4725. (package
  4726. (name "r-compquadform")
  4727. (version "1.4.3")
  4728. (source
  4729. (origin
  4730. (method url-fetch)
  4731. (uri (cran-uri "CompQuadForm" version))
  4732. (sha256
  4733. (base32
  4734. "1i30hrqdk64q17vsn918c3q79brchgx2wzh1gbsgbn0dh1ncabq4"))))
  4735. (properties `((upstream-name . "CompQuadForm")))
  4736. (build-system r-build-system)
  4737. (home-page "https://cran.r-project.org/web/packages/CompQuadForm")
  4738. (synopsis "Distribution function of quadratic forms in normal variables")
  4739. (description
  4740. "This package provides functions to compute the distribution function of
  4741. quadratic forms in normal variables using Imhof's method, Davies's algorithm,
  4742. Farebrother's algorithm or Liu et al.'s algorithm.")
  4743. (license license:gpl2+)))
  4744. (define-public r-cowplot
  4745. (package
  4746. (name "r-cowplot")
  4747. (version "1.1.1")
  4748. (source
  4749. (origin
  4750. (method url-fetch)
  4751. (uri (cran-uri "cowplot" version))
  4752. (sha256
  4753. (base32
  4754. "0j7d5vhzdxn1blrsfafx5z8lhq122rp8230hp9czrpsnnhjydp67"))))
  4755. (build-system r-build-system)
  4756. (propagated-inputs
  4757. (list r-ggplot2 r-gtable r-rlang r-scales))
  4758. (native-inputs
  4759. (list r-knitr))
  4760. (home-page "https://github.com/wilkelab/cowplot")
  4761. (synopsis "Streamlined plot theme and plot annotations for ggplot2")
  4762. (description
  4763. "This package provides some helpful extensions and modifications to the
  4764. ggplot2 package to combine multiple ggplot2 plots into one and label them with
  4765. letters, as is often required for scientific publications.")
  4766. (license license:gpl2)))
  4767. (define-public r-mixtools
  4768. (package
  4769. (name "r-mixtools")
  4770. (version "1.2.0")
  4771. (source
  4772. (origin
  4773. (method url-fetch)
  4774. (uri (cran-uri "mixtools" version))
  4775. (sha256
  4776. (base32
  4777. "08whic8hmmzi55b7azwj11l2x5r9s5qbyrv7s9jr08156vqkw0zg"))))
  4778. (build-system r-build-system)
  4779. (propagated-inputs
  4780. (list r-mass r-kernlab r-segmented r-survival))
  4781. (home-page "https://cran.r-project.org/web/packages/mixtools")
  4782. (synopsis "Tools for analyzing finite mixture models")
  4783. (description
  4784. "This package provides a collection of R functions for analyzing finite
  4785. mixture models.")
  4786. (license license:gpl2+)))
  4787. (define-public r-lars
  4788. (package
  4789. (name "r-lars")
  4790. (version "1.2")
  4791. (source
  4792. (origin
  4793. (method url-fetch)
  4794. (uri (cran-uri "lars" version))
  4795. (sha256
  4796. (base32
  4797. "0blj44wqrx6lmym1m9v6wkz8zxzbjax2zl6swgdczci0ixb5nx34"))))
  4798. (build-system r-build-system)
  4799. (inputs
  4800. (list gfortran))
  4801. (home-page "https://web.stanford.edu/~hastie/Papers/LARS/")
  4802. (synopsis "Least angle regression software")
  4803. (description
  4804. "Least Angle Regression (\"LAR\") is a model selection algorithm; a
  4805. useful and less greedy version of traditional forward selection methods. A
  4806. simple modification of the LAR algorithm implements Tibshirani's Lasso; the
  4807. Lasso modification of LARS calculates the entire Lasso path of coefficients
  4808. for a given problem at the cost of a single least squares fit. Another LARS
  4809. modification efficiently implements epsilon Forward Stagewise linear
  4810. regression.")
  4811. (license license:gpl2)))
  4812. (define-public r-fastica
  4813. (package
  4814. (name "r-fastica")
  4815. (version "1.2-3")
  4816. (source
  4817. (origin
  4818. (method url-fetch)
  4819. (uri (cran-uri "fastICA" version))
  4820. (sha256
  4821. (base32
  4822. "0l49cmxm1n4dzrv8q3q3mq4drcjgby4f1dmpwfdb8jxn9ij85vz9"))))
  4823. (properties `((upstream-name . "fastICA")))
  4824. (build-system r-build-system)
  4825. (home-page "https://cran.r-project.org/web/packages/fastICA")
  4826. (synopsis "FastICA algorithms to perform ICA and projection pursuit")
  4827. (description
  4828. "This package provides an implementation of the FastICA algorithm to
  4829. perform @dfn{independent component analysis} (ICA) and projection pursuit.")
  4830. ;; Any GPL version.
  4831. (license license:gpl3+)))
  4832. (define-public r-randomforest
  4833. (package
  4834. (name "r-randomforest")
  4835. (version "4.7-1")
  4836. (source
  4837. (origin
  4838. (method url-fetch)
  4839. (uri (cran-uri "randomForest" version))
  4840. (sha256
  4841. (base32
  4842. "04q6gb917md4yw837cf9vlx1q8ljl06jw7yhykzb6nl47w55jnkq"))))
  4843. (properties `((upstream-name . "randomForest")))
  4844. (build-system r-build-system)
  4845. (home-page "https://www.stat.berkeley.edu/~breiman/RandomForests/")
  4846. (native-inputs
  4847. (list gfortran))
  4848. (synopsis "Breiman and Cutler's random forests for classification and regression")
  4849. (description
  4850. "This package provides the Breiman and Cutler's random forests algorithm, based on a
  4851. forest of trees using random inputs, for classification and regression.")
  4852. (license license:gpl2+)))
  4853. (define-public r-diptest
  4854. (package
  4855. (name "r-diptest")
  4856. (version "0.76-0")
  4857. (source
  4858. (origin
  4859. (method url-fetch)
  4860. (uri (cran-uri "diptest" version))
  4861. (sha256
  4862. (base32
  4863. "10629vwn6r2949jjrmj5slbb5v0vnm3w0v8mrl7ws68m2sxmx2jh"))))
  4864. (build-system r-build-system)
  4865. (home-page "https://cran.r-project.org/web/packages/diptest")
  4866. (synopsis "Hartigan's dip test statistic for unimodality")
  4867. (description
  4868. "This package computes Hartigan's dip test statistic for unimodality,
  4869. multimodality and provides a test with simulation based p-values, where the
  4870. original public code has been corrected.")
  4871. (license license:gpl2+)))
  4872. (define-public r-modeltools
  4873. (package
  4874. (name "r-modeltools")
  4875. (version "0.2-23")
  4876. (source
  4877. (origin
  4878. (method url-fetch)
  4879. (uri (cran-uri "modeltools" version))
  4880. (sha256
  4881. (base32
  4882. "1vqh69256h344sbj5affm0kmc77dakrxp6442xfdnfd0y5d8sgkb"))))
  4883. (build-system r-build-system)
  4884. (home-page "https://cran.r-project.org/web/packages/modeltools")
  4885. (synopsis "Tools and classes for statistical models")
  4886. (description
  4887. "This package provides a collection of tools to deal with statistical
  4888. models. The functionality is experimental and the user interface is likely
  4889. to change in the future.")
  4890. (license license:gpl2)))
  4891. (define-public r-flexmix
  4892. (package
  4893. (name "r-flexmix")
  4894. (version "2.3-17")
  4895. (source
  4896. (origin
  4897. (method url-fetch)
  4898. (uri (cran-uri "flexmix" version))
  4899. (sha256
  4900. (base32
  4901. "0jangf89174p0idh9afbicfiln2sz8jxc3bjc6n0j9036dw9n09n"))))
  4902. (build-system r-build-system)
  4903. (propagated-inputs
  4904. (list r-lattice r-modeltools r-nnet))
  4905. (home-page "https://cran.r-project.org/web/packages/flexmix")
  4906. (synopsis "Flexible mixture modeling")
  4907. (description
  4908. "This package implements a general framework for finite mixtures of
  4909. regression models using the EM algorithm. FlexMix provides the E-step and
  4910. all data handling, while the M-step can be supplied by the user to easily
  4911. define new models. Existing drivers implement mixtures of standard linear
  4912. models, generalized linear models and model-based clustering.")
  4913. (license license:gpl2+)))
  4914. (define-public r-mclust
  4915. (package
  4916. (name "r-mclust")
  4917. (version "5.4.9")
  4918. (source
  4919. (origin
  4920. (method url-fetch)
  4921. (uri (cran-uri "mclust" version))
  4922. (sha256
  4923. (base32
  4924. "0s4mva0n04f3pl41msmzhlh7pnk0zbmf06n826smxkw6mz327wb5"))))
  4925. (build-system r-build-system)
  4926. (native-inputs
  4927. (list gfortran r-knitr))
  4928. (home-page "https://www.stat.washington.edu/mclust/")
  4929. (synopsis "Gaussian mixture modelling for model-based clustering etc.")
  4930. (description
  4931. "This package provides Gaussian finite mixture models fitted via EM
  4932. algorithm for model-based clustering, classification, and density estimation,
  4933. including Bayesian regularization, dimension reduction for visualisation,
  4934. and resampling-based inference.")
  4935. (license license:gpl2+)))
  4936. (define-public r-prabclus
  4937. (package
  4938. (name "r-prabclus")
  4939. (version "2.3-2")
  4940. (source
  4941. (origin
  4942. (method url-fetch)
  4943. (uri (cran-uri "prabclus" version))
  4944. (sha256
  4945. (base32
  4946. "0hg4d7y1w18jpgvw10z8833bbbcnlkwiasx0wh6iwa2pnnybq8gl"))))
  4947. (build-system r-build-system)
  4948. (propagated-inputs
  4949. (list r-mass r-mclust))
  4950. (home-page "https://cran.r-project.org/web/packages/prabclus")
  4951. (synopsis "Parametric bootstrap tests for spatial neighborhood clustering")
  4952. (description
  4953. "This package provides distance-based parametric bootstrap tests for
  4954. clustering with spatial neighborhood information. It implements some distance
  4955. measures, clustering of presence-absence, abundance and multilocus genetical
  4956. data for species delimitation, nearest neighbor based noise detection.")
  4957. (license license:gpl2+)))
  4958. (define-public r-deoptimr
  4959. (package
  4960. (name "r-deoptimr")
  4961. (version "1.0-10")
  4962. (source
  4963. (origin
  4964. (method url-fetch)
  4965. (uri (cran-uri "DEoptimR" version))
  4966. (sha256
  4967. (base32
  4968. "1m9ag073i7pbxsy74vkj0n4hjn6vmyc4n0k78nmslwwwmjh7nkvp"))))
  4969. (properties `((upstream-name . "DEoptimR")))
  4970. (build-system r-build-system)
  4971. (home-page "https://cran.r-project.org/web/packages/DEoptimR")
  4972. (synopsis "Differential evolution optimization in pure R")
  4973. (description
  4974. "This package provides a differential evolution (DE) stochastic
  4975. algorithms for global optimization of problems with and without constraints.
  4976. The aim is to curate a collection of its state-of-the-art variants that (1) do
  4977. not sacrifice simplicity of design, (2) are essentially tuning-free, and (3)
  4978. can be efficiently implemented directly in the R language.")
  4979. (license license:gpl2+)))
  4980. (define-public r-robustbase
  4981. (package
  4982. (name "r-robustbase")
  4983. (version "0.93-9")
  4984. (source
  4985. (origin
  4986. (method url-fetch)
  4987. (uri (cran-uri "robustbase" version))
  4988. (sha256
  4989. (base32
  4990. "0i9wf4aq8zpn2np6z2rjja21ks9n740dgkiv0qfwdzk3ah3vapyp"))))
  4991. (build-system r-build-system)
  4992. (native-inputs
  4993. (list gfortran))
  4994. (propagated-inputs
  4995. (list r-deoptimr))
  4996. (home-page "http://robustbase.r-forge.r-project.org/")
  4997. (synopsis "Basic robust statistics")
  4998. (description
  4999. "This package analyzes data with robust methods such as
  5000. regression methodology including model selections and multivariate statistics.")
  5001. (license license:gpl2+)))
  5002. (define-public r-pcapp
  5003. (package
  5004. (name "r-pcapp")
  5005. (version "1.9-74")
  5006. (source
  5007. (origin
  5008. (method url-fetch)
  5009. (uri (cran-uri "pcaPP" version))
  5010. (sha256
  5011. (base32
  5012. "1dlrz5plb8b89vr3j6sn9jwryyhcwflqkiilxkybbr379m1pp0sh"))))
  5013. (properties `((upstream-name . "pcaPP")))
  5014. (build-system r-build-system)
  5015. (propagated-inputs
  5016. (list r-mvtnorm))
  5017. (home-page "https://cran.r-project.org/web/packages/pcaPP")
  5018. (synopsis "Robust PCA by projection pursuit")
  5019. (description
  5020. "This package provides functions for robust @dfn{principal component
  5021. analysis} (PCA) by projection pursuit.")
  5022. (license license:gpl3+)))
  5023. (define-public r-rrcov
  5024. (package
  5025. (name "r-rrcov")
  5026. (version "1.6-2")
  5027. (source
  5028. (origin
  5029. (method url-fetch)
  5030. (uri (cran-uri "rrcov" version))
  5031. (sha256
  5032. (base32
  5033. "18x8y2b9n2plpn4086nkjk9c27p7gb78kbrv5pj9r8fb0idl5rn5"))))
  5034. (build-system r-build-system)
  5035. (propagated-inputs
  5036. (list r-lattice r-mvtnorm r-pcapp r-robustbase))
  5037. (native-inputs
  5038. (list gfortran))
  5039. (home-page "https://cran.r-project.org/web/packages/rrcov")
  5040. (synopsis "Scalable robust estimators with high breakdown Point")
  5041. (description
  5042. "This package provides an implementation of robust location and scatter
  5043. estimation and robust multivariate analysis with high breakdown point.")
  5044. (license license:gpl2+)))
  5045. (define-public r-fit-models
  5046. (package
  5047. (name "r-fit-models")
  5048. (version "0.64")
  5049. (source
  5050. (origin
  5051. (method url-fetch)
  5052. (uri (cran-uri "fit.models" version))
  5053. (sha256
  5054. (base32
  5055. "1nk4x2q8cv79zcls61saf627ac0fci6jcrd6lmzk61asm2zhc27p"))))
  5056. (properties `((upstream-name . "fit.models")))
  5057. (build-system r-build-system)
  5058. (propagated-inputs
  5059. (list r-lattice))
  5060. (home-page "https://cran.r-project.org/web/packages/fit.models")
  5061. (synopsis "Compare fitted models")
  5062. (description
  5063. "The @code{fit.models} function and its associated methods (coefficients, print,
  5064. summary, plot, etc.) were originally provided in the @code{robust} package to
  5065. compare robustly and classically fitted model objects. The aim of the
  5066. @code{fit.models} package is to separate this fitted model object comparison
  5067. functionality from the robust package and to extend it to support fitting
  5068. methods (e.g., classical, robust, Bayesian, regularized, etc.) more
  5069. generally.")
  5070. ;; Any version of the GPL
  5071. (license (list license:gpl2+ license:gpl3+))))
  5072. (define-public r-robust
  5073. (package
  5074. (name "r-robust")
  5075. (version "0.7-0")
  5076. (source
  5077. (origin
  5078. (method url-fetch)
  5079. (uri (cran-uri "robust" version))
  5080. (sha256
  5081. (base32
  5082. "1fc4h19b7gn9ya2j2ia8vfgsycwlyc23frj54k11dr45w4qaq6jy"))))
  5083. (build-system r-build-system)
  5084. (propagated-inputs
  5085. (list r-fit-models r-lattice r-mass r-robustbase r-rrcov))
  5086. (native-inputs
  5087. (list gfortran))
  5088. (home-page "https://cran.r-project.org/web/packages/robust")
  5089. (synopsis "Port of the S+ \"Robust Library\"")
  5090. (description
  5091. "This package is a port of the S+ \"Robust Library\". It provides
  5092. methods for robust statistics, notably for robust regression and robust
  5093. multivariate analysis.")
  5094. (license license:gpl2)))
  5095. (define-public r-trimcluster
  5096. (package
  5097. (name "r-trimcluster")
  5098. (version "0.1-5")
  5099. (source
  5100. (origin
  5101. (method url-fetch)
  5102. (uri (cran-uri "trimcluster" version))
  5103. (sha256
  5104. (base32
  5105. "12siv8yx8dcavsz8jk96lwscbj257ar8jpaxksl2zb06987g4fcj"))))
  5106. (build-system r-build-system)
  5107. (home-page "https://cran.r-project.org/web/packages/trimcluster")
  5108. (synopsis "Cluster analysis with trimming")
  5109. (description
  5110. "The trimmed k-means clustering method by Cuesta-Albertos, Gordaliza and
  5111. Matran (1997). This optimizes the k-means criterion under trimming a portion
  5112. of the points.")
  5113. ;; Any GPL version
  5114. (license (list license:gpl2+ license:gpl3+))))
  5115. (define-public r-fpc
  5116. (package
  5117. (name "r-fpc")
  5118. (version "2.2-9")
  5119. (source
  5120. (origin
  5121. (method url-fetch)
  5122. (uri (cran-uri "fpc" version))
  5123. (sha256
  5124. (base32
  5125. "0f7sfmpcycr9y7cy5gasyjm2ardxa62kglqms92mcr68jrp01c19"))))
  5126. (build-system r-build-system)
  5127. (propagated-inputs
  5128. (list r-class
  5129. r-cluster
  5130. r-diptest
  5131. r-flexmix
  5132. r-kernlab
  5133. r-mass
  5134. r-mclust
  5135. r-prabclus
  5136. r-robustbase))
  5137. (home-page "https://cran.r-project.org/web/packages/fpc")
  5138. (synopsis "Flexible procedures for clustering")
  5139. (description
  5140. "This package provides various methods for clustering and cluster validation.
  5141. For example, it provides fixed point clustering, linear regression clustering,
  5142. clustering by merging Gaussian mixture components, as well as symmetric and
  5143. asymmetric discriminant projections for visualisation of the separation of
  5144. groupings.")
  5145. (license license:gpl2+)))
  5146. (define-public r-vgam
  5147. (package
  5148. (name "r-vgam")
  5149. (version "1.1-6")
  5150. (source
  5151. (origin
  5152. (method url-fetch)
  5153. (uri (cran-uri "VGAM" version))
  5154. (sha256
  5155. (base32 "05yl1lbpambwg3i3rqn6aanaym7c3s8g7hi0bph98iyxqnx62sj4"))))
  5156. (properties `((upstream-name . "VGAM")))
  5157. (build-system r-build-system)
  5158. (native-inputs
  5159. (list gfortran))
  5160. (home-page "https://www.stat.auckland.ac.nz/~yee/VGAM")
  5161. (synopsis "Vector generalized linear and additive models")
  5162. (description
  5163. "This package is an implementation of about 6 major classes of statistical
  5164. regression models. Currently only fixed-effects models are implemented, i.e.,
  5165. no random-effects models. Many (150+) models and distributions are estimated
  5166. by maximum likelihood estimation (MLE) or penalized MLE, using Fisher scoring.
  5167. VGLMs can be loosely thought of as multivariate generalised linear models.")
  5168. (license license:gpl2+)))
  5169. (define-public r-pbapply
  5170. (package
  5171. (name "r-pbapply")
  5172. (version "1.5-0")
  5173. (source
  5174. (origin
  5175. (method url-fetch)
  5176. (uri (cran-uri "pbapply" version))
  5177. (sha256
  5178. (base32
  5179. "0m8a0ygwl98cs0vcha5gs9f7z8whcplwxhravhs9bfp5hvigxzgg"))))
  5180. (build-system r-build-system)
  5181. (home-page "https://github.com/psolymos/pbapply")
  5182. (synopsis "Adding progress bar to apply functions")
  5183. (description
  5184. "This lightweight package that adds progress bar to vectorized R
  5185. functions apply. The implementation can easily be added to functions where
  5186. showing the progress is useful e.g. bootstrap.")
  5187. (license license:gpl2)))
  5188. (define-public r-minqa
  5189. (package
  5190. (name "r-minqa")
  5191. (version "1.2.4")
  5192. (source
  5193. (origin
  5194. (method url-fetch)
  5195. (uri (cran-uri "minqa" version))
  5196. (sha256
  5197. (base32
  5198. "036drja6xz7awja9iwb76x91415p26fb0jmg7y7v0p65m6j978fg"))))
  5199. (build-system r-build-system)
  5200. (propagated-inputs
  5201. (list r-rcpp))
  5202. (inputs
  5203. (list gfortran))
  5204. (home-page "http://optimizer.r-forge.r-project.org")
  5205. (synopsis "Derivative-free optimization algorithms by quadratic approximation")
  5206. (description
  5207. "This package provides a derivative-free optimization by quadratic approximation
  5208. based on an interface to Fortran implementations by M. J. D. Powell.")
  5209. (license license:gpl2)))
  5210. (define-public r-rcppeigen
  5211. (package
  5212. (name "r-rcppeigen")
  5213. (version "0.3.3.9.1")
  5214. (source
  5215. (origin
  5216. (method url-fetch)
  5217. (uri (cran-uri "RcppEigen" version))
  5218. (sha256
  5219. (base32
  5220. "0qp9gypar280lm84pc8w0fxw4jgwqygwi3qnl5sl52kpkcj8c14a"))))
  5221. (properties `((upstream-name . "RcppEigen")))
  5222. (build-system r-build-system)
  5223. (propagated-inputs
  5224. (list r-rcpp r-matrix))
  5225. (home-page "http://eigen.tuxfamily.org")
  5226. (synopsis "Rcpp integration for the Eigen templated linear algebra library")
  5227. (description
  5228. "This package provides an integration of Eigen in R using a C++ template
  5229. library for linear algebra: matrices, vectors, numerical solvers and related algorithms.
  5230. It supports dense and sparse matrices on integer, floating point and complex numbers,
  5231. decompositions of such matrices, and solutions of linear systems.")
  5232. (license license:gpl2+)))
  5233. (define-public r-modelmetrics
  5234. (package
  5235. (name "r-modelmetrics")
  5236. (version "1.2.2.2")
  5237. (source
  5238. (origin
  5239. (method url-fetch)
  5240. (uri (cran-uri "ModelMetrics" version))
  5241. (sha256
  5242. (base32
  5243. "0mrlsw4c5y1vdsqynxr2dcvmhh5h37pnd71jw5a5djpbda9g21jy"))))
  5244. (properties `((upstream-name . "ModelMetrics")))
  5245. (build-system r-build-system)
  5246. (propagated-inputs
  5247. (list r-rcpp r-data-table))
  5248. (home-page "https://cran.r-project.org/web/packages/ModelMetrics")
  5249. (synopsis "Rapid calculation of model metrics")
  5250. (description
  5251. "Written in C++ using @code{Rcpp}, this package provides a collection of
  5252. metrics for evaluating models.")
  5253. (license license:gpl2+)))
  5254. (define-public r-matrixmodels
  5255. (package
  5256. (name "r-matrixmodels")
  5257. (version "0.5-0")
  5258. (source
  5259. (origin
  5260. (method url-fetch)
  5261. (uri (cran-uri "MatrixModels" version))
  5262. (sha256
  5263. (base32
  5264. "1va6i6bpkq71rzl9i4xgyc5x7qcksa3nfzihlaggf6aj30dayzx8"))))
  5265. (properties `((upstream-name . "MatrixModels")))
  5266. (build-system r-build-system)
  5267. (propagated-inputs
  5268. (list r-matrix))
  5269. (home-page "https://cran.r-project.org/web/packages/MatrixModels")
  5270. (synopsis "Modelling with sparse and dense matrices")
  5271. (description
  5272. "This package models with sparse and dense matrix matrices,
  5273. using modular prediction and response module classes.")
  5274. (license license:gpl2+)))
  5275. (define-public r-quantreg
  5276. (package
  5277. (name "r-quantreg")
  5278. (version "5.88")
  5279. (source
  5280. (origin
  5281. (method url-fetch)
  5282. (uri (cran-uri "quantreg" version))
  5283. (sha256
  5284. (base32 "0grsha18zkiil0qnxc1d7kc3w26i6aaa4av9n9ahdm8yf59yah0r"))))
  5285. (build-system r-build-system)
  5286. (native-inputs
  5287. (list gfortran))
  5288. (propagated-inputs
  5289. (list r-matrix r-matrixmodels r-sparsem))
  5290. (home-page "https://www.r-project.org")
  5291. (synopsis "Quantile regression")
  5292. (description
  5293. "This package provides an estimation and inference methods for models
  5294. of conditional quantiles: linear and nonlinear parametric and non-parametric
  5295. models for conditional quantiles of a univariate response and several methods
  5296. for handling censored survival data. Portfolio selection methods based on
  5297. expected shortfall risk are also included.")
  5298. (license license:gpl2+)))
  5299. (define-public r-nloptr
  5300. (package
  5301. (name "r-nloptr")
  5302. (version "2.0.0")
  5303. (source
  5304. (origin
  5305. (method url-fetch)
  5306. (uri (cran-uri "nloptr" version))
  5307. (sha256
  5308. (base32
  5309. "16k124ll14p3ygny6i1zd7yza83bv2sk87x922n1bfn9rx4k3jk5"))))
  5310. (build-system r-build-system)
  5311. (native-inputs
  5312. (list r-knitr ; for building vignettes
  5313. pkg-config gfortran))
  5314. (inputs
  5315. (list nlopt))
  5316. (propagated-inputs (list r-testthat))
  5317. (home-page "https://cran.r-project.org/web/packages/nloptr")
  5318. (synopsis "R interface to NLopt")
  5319. (description
  5320. "This package is interface to NLopt, a library for nonlinear
  5321. optimization. NLopt is a library for nonlinear optimization, providing a
  5322. common interface for a number of different free optimization routines
  5323. available online as well as original implementations of various other
  5324. algorithms.")
  5325. (license license:lgpl3)))
  5326. (define-public r-lme4
  5327. (package
  5328. (name "r-lme4")
  5329. (version "1.1-28")
  5330. (source
  5331. (origin
  5332. (method url-fetch)
  5333. (uri (cran-uri "lme4" version))
  5334. (sha256
  5335. (base32
  5336. "03nw76bfyas6cdm9chyxqm5ks6r0qklf2fdy7h4pqrqss325x1fi"))))
  5337. (build-system r-build-system)
  5338. (propagated-inputs
  5339. (list r-boot
  5340. r-lattice
  5341. r-mass
  5342. r-matrix
  5343. r-minqa
  5344. r-nloptr
  5345. r-nlme
  5346. r-rcpp
  5347. r-rcppeigen))
  5348. (native-inputs
  5349. (list r-knitr))
  5350. (home-page "https://cran.r-project.org/web/packages/lme4")
  5351. (synopsis "Linear mixed-effects models using eigen and S4")
  5352. (description
  5353. "This package provides fit linear and generalized linear mixed-effects
  5354. models. The models and their components are represented using S4 classes and
  5355. methods. The core computational algorithms are implemented using the Eigen
  5356. C++ library for numerical linear algebra and RcppEigen glue.")
  5357. (license license:gpl2+)))
  5358. (define-public r-pbkrtest
  5359. (package
  5360. (name "r-pbkrtest")
  5361. (version "0.5.1")
  5362. (source
  5363. (origin
  5364. (method url-fetch)
  5365. (uri (cran-uri "pbkrtest" version))
  5366. (sha256
  5367. (base32
  5368. "1if7msv9i7jhg1as1f7m81a95dnwhwj3yfs24bqr0f6r0ch4b8xj"))))
  5369. (build-system r-build-system)
  5370. (propagated-inputs
  5371. (list r-broom
  5372. r-dplyr
  5373. r-lme4
  5374. r-magrittr
  5375. r-mass
  5376. r-matrix
  5377. r-numderiv))
  5378. (native-inputs
  5379. (list r-knitr))
  5380. (home-page "https://people.math.aau.dk/~sorenh/software/pbkrtest/")
  5381. (synopsis "Methods for linear mixed model comparison")
  5382. (description
  5383. "This package implements a parametric bootstrap test and a Kenward Roger
  5384. modification of F-tests for linear mixed effects models and a parametric
  5385. bootstrap test for generalized linear mixed models.")
  5386. (license license:gpl2+)))
  5387. (define-public r-cardata
  5388. (package
  5389. (name "r-cardata")
  5390. (version "3.0-5")
  5391. (source
  5392. (origin
  5393. (method url-fetch)
  5394. (uri (cran-uri "carData" version))
  5395. (sha256
  5396. (base32 "06j52rpbqi6fj7chfjwjbwbr6slrbb7i3aygv66gnfiyndcp3rq2"))))
  5397. (properties `((upstream-name . "carData")))
  5398. (build-system r-build-system)
  5399. (home-page "https://r-forge.r-project.org/projects/car/")
  5400. (synopsis "Data Sets for the book Companion to Applied Regression")
  5401. (description
  5402. "This package provides datasets to accompany J. Fox and S. Weisberg, An R
  5403. Companion to Applied Regression, Third Edition, Sage.")
  5404. (license license:gpl2+)))
  5405. (define-public r-car
  5406. (package
  5407. (name "r-car")
  5408. (version "3.0-12")
  5409. (source
  5410. (origin
  5411. (method url-fetch)
  5412. (uri (cran-uri "car" version))
  5413. (sha256
  5414. (base32 "00kk8l71508f73kyn21is1mx6kjbrzdq3ls94c5ajhiqmvpsd6dq"))))
  5415. (build-system r-build-system)
  5416. (propagated-inputs
  5417. (list r-abind
  5418. r-cardata
  5419. r-lme4
  5420. r-maptools
  5421. r-mass
  5422. r-mgcv
  5423. r-nlme
  5424. r-nnet
  5425. r-pbkrtest
  5426. r-quantreg))
  5427. (native-inputs
  5428. (list r-knitr))
  5429. (home-page "https://r-forge.r-project.org/projects/car/")
  5430. (synopsis "Companion to applied regression")
  5431. (description
  5432. "This package provides functions and datasets from book Companion
  5433. to Applied regression, Second Edition, Sage, 2011.")
  5434. (license license:gpl2+)))
  5435. (define-public r-rcppprogress
  5436. (package
  5437. (name "r-rcppprogress")
  5438. (version "0.4.2")
  5439. (source
  5440. (origin
  5441. (method url-fetch)
  5442. (uri (cran-uri "RcppProgress" version))
  5443. (sha256
  5444. (base32
  5445. "0j2b37gwjpgmrnr00srdzm751hzlpsjb54ph63xxmcdfnwhlnqmi"))))
  5446. (properties `((upstream-name . "RcppProgress")))
  5447. (build-system r-build-system)
  5448. (home-page "https://github.com/kforner/rcpp_progress")
  5449. (synopsis "Interruptible progress bar for C++ in R packages")
  5450. (description
  5451. "This package displays a progress bar in the R console for long running
  5452. computations taking place in C++ code, and support for interrupting those computations
  5453. even in multithreaded code, typically using OpenMP.")
  5454. (license license:gpl3+)))
  5455. (define-public r-tmvnsim
  5456. (package
  5457. (name "r-tmvnsim")
  5458. (version "1.0-2")
  5459. (source
  5460. (origin
  5461. (method url-fetch)
  5462. (uri (cran-uri "tmvnsim" version))
  5463. (sha256
  5464. (base32
  5465. "03xsvsg9bqvgl98ywid3h91mmlhax5s6wvmypp3hq91vmc5kvxlp"))))
  5466. (properties `((upstream-name . "tmvnsim")))
  5467. (build-system r-build-system)
  5468. (native-inputs (list gfortran))
  5469. (home-page "https://www.r-project.org")
  5470. (synopsis "Truncated multivariate normal simulation")
  5471. (description
  5472. "This package implements importance sampling from the truncated
  5473. multivariate normal using the @dfn{Geweke-Hajivassiliou-Keane} (GHK)
  5474. simulator. Unlike Gibbs sampling which can get stuck in one truncation
  5475. sub-region depending on initial values, this package allows truncation based
  5476. on disjoint regions that are created by truncation of absolute values. The
  5477. GHK algorithm uses simple Cholesky transformation followed by recursive
  5478. simulation of univariate truncated normals hence there are also no convergence
  5479. issues. Importance sample is returned along with sampling weights, based on
  5480. which, one can calculate integrals over truncated regions for multivariate
  5481. normals.")
  5482. (license license:gpl2)))
  5483. (define-public r-mnormt
  5484. (package
  5485. (name "r-mnormt")
  5486. (version "2.0.2")
  5487. (source
  5488. (origin
  5489. (method url-fetch)
  5490. (uri (cran-uri "mnormt" version))
  5491. (sha256
  5492. (base32
  5493. "0d7ka4l4fl1wi77r2r81dc91n6cbj2xrb3lsizz5y0ziscva0sjw"))))
  5494. (build-system r-build-system)
  5495. (propagated-inputs
  5496. (list r-tmvnsim))
  5497. (native-inputs
  5498. (list gfortran))
  5499. (home-page "http://azzalini.stat.unipd.it/SW/Pkg-mnormt")
  5500. (synopsis "Multivariate normal and \"t\" distributions")
  5501. (description
  5502. "This package provides functions for computing the density and the
  5503. distribution function of multivariate normal and \"t\" random variables, and
  5504. for generating random vectors sampled from these distributions. Probabilities
  5505. are computed via non-Monte Carlo methods.")
  5506. (license license:gpl2+)))
  5507. (define-public r-numderiv
  5508. (package
  5509. (name "r-numderiv")
  5510. (version "2016.8-1.1")
  5511. (source
  5512. (origin
  5513. (method url-fetch)
  5514. (uri (cran-uri "numDeriv" version))
  5515. (sha256
  5516. (base32
  5517. "0idk02pqkziik932bd8k72d1q775g1is3m4bc861pcxfz6gx3i6q"))))
  5518. (properties `((upstream-name . "numDeriv")))
  5519. (build-system r-build-system)
  5520. (home-page "https://cran.r-project.org/web/packages/numDeriv")
  5521. (synopsis "Accurate numerical derivatives")
  5522. (description
  5523. "This package provides methods for calculating accurate numerical
  5524. first and second order derivatives.")
  5525. (license license:gpl2)))
  5526. (define-public r-sn
  5527. (package
  5528. (name "r-sn")
  5529. (version "2.0.2")
  5530. (source
  5531. (origin
  5532. (method url-fetch)
  5533. (uri (cran-uri "sn" version))
  5534. (sha256
  5535. (base32
  5536. "140p1pl5sq0laxhcm16kbqm986hlhqj90gj3jccga491gh14jywm"))))
  5537. (build-system r-build-system)
  5538. (propagated-inputs
  5539. (list r-mnormt r-numderiv r-quantreg))
  5540. (home-page "http://azzalini.stat.unipd.it/SN")
  5541. (synopsis "The skew-normal and skew-t distributions")
  5542. (description
  5543. "This package provides functionalities to build and manipulate
  5544. probability distributions of the skew-normal family and some related
  5545. ones, notably the skew-t family, and provides related statistical
  5546. methods for data fitting and diagnostics, in the univariate and the
  5547. multivariate case.")
  5548. (license license:gpl2+)))
  5549. (define-public r-tclust
  5550. (package
  5551. (name "r-tclust")
  5552. (version "1.4-2")
  5553. (source
  5554. (origin
  5555. (method url-fetch)
  5556. (uri (cran-uri "tclust" version))
  5557. (sha256
  5558. (base32
  5559. "1nb5iky4kc832627jf28lzj19wrvgwg5da6fyl3kyf0npmyx1p4m"))))
  5560. (build-system r-build-system)
  5561. ;; These are all suggested packages, not build dependencies.
  5562. (propagated-inputs
  5563. (list r-cluster r-mclust r-mvtnorm r-sn))
  5564. (home-page "https://cran.r-project.org/web/packages/tclust")
  5565. (synopsis "Robust trimmed clustering")
  5566. (description
  5567. "This package implements different robust clustering
  5568. algorithms (@code{tclust}) based on trimming and including some graphical
  5569. diagnostic tools (@code{ctlcurves} and @code{DiscrFact}).")
  5570. (license license:gpl3)))
  5571. (define-public r-ranger
  5572. (package
  5573. (name "r-ranger")
  5574. (version "0.13.1")
  5575. (source
  5576. (origin
  5577. (method url-fetch)
  5578. (uri (cran-uri "ranger" version))
  5579. (sha256
  5580. (base32
  5581. "02idcc6zbdz4wsi1mcwh7qyhmlbwvnzxwkdvvppxw7n2rh54z4v0"))))
  5582. (build-system r-build-system)
  5583. (propagated-inputs
  5584. (list r-rcpp r-matrix r-rcppeigen))
  5585. (home-page "https://github.com/imbs-hl/ranger")
  5586. (synopsis "Fast implementation of random forests")
  5587. (description
  5588. "This package provides a fast implementation of Random Forests,
  5589. particularly suited for high dimensional data. Ensembles of classification,
  5590. regression, survival and probability prediction trees are supported. Data from
  5591. genome-wide association studies can be analyzed efficiently.")
  5592. (license license:gpl3)))
  5593. (define-public r-tsne
  5594. (package
  5595. (name "r-tsne")
  5596. (version "0.1-3")
  5597. (source
  5598. (origin
  5599. (method url-fetch)
  5600. (uri (cran-uri "tsne" version))
  5601. (sha256
  5602. (base32
  5603. "0s8cv2pndkddq62rzlgzgfdjp1vjv5hz5i5957sllnb97vbzbzb6"))))
  5604. (build-system r-build-system)
  5605. (home-page "https://github.com/jdonaldson/rtsne/")
  5606. (synopsis "t-Distributed Stochastic Neighbor Embedding for R")
  5607. (description
  5608. "This package provides a pure R implementation of the t-SNE algorithm.")
  5609. (license license:gpl2+)))
  5610. (define-public r-cairo
  5611. (package
  5612. (name "r-cairo")
  5613. (version "1.5-14")
  5614. (source
  5615. (origin
  5616. (method url-fetch)
  5617. (uri (cran-uri "Cairo" version))
  5618. (sha256
  5619. (base32
  5620. "0ysc40smkjwk8fmp5dk0q3nbp9xkxzz9pd4z5zkp2mrvrvx52xq6"))))
  5621. (properties `((upstream-name . "Cairo")))
  5622. (build-system r-build-system)
  5623. (inputs
  5624. (list cairo libxt zlib))
  5625. (native-inputs
  5626. (list pkg-config))
  5627. (home-page "https://www.rforge.net/Cairo/")
  5628. (synopsis "R graphics device using Cairo graphics library")
  5629. (description
  5630. "This package provides a Cairo graphics device that can be use to
  5631. create high-quality vector (PDF, PostScript and SVG) and bitmap
  5632. output (PNG,JPEG,TIFF), and high-quality rendering in displays (X11
  5633. and Win32). Since it uses the same back-end for all output, copying
  5634. across formats is WYSIWYG. Files are created without the dependence
  5635. on X11 or other external programs. This device supports alpha
  5636. channel (semi-transparent drawing) and resulting images can contain
  5637. transparent and semi-transparent regions. It is ideal for use in
  5638. server environments (file output) and as a replacement for other
  5639. devices that don't have Cairo's capabilities such as alpha support or
  5640. anti-aliasing. Backends are modular such that any subset of backends
  5641. is supported.")
  5642. (license license:gpl2)))
  5643. (define-public r-lubridate
  5644. (package
  5645. (name "r-lubridate")
  5646. (version "1.8.0")
  5647. (source
  5648. (origin
  5649. (method url-fetch)
  5650. (uri (cran-uri "lubridate" version))
  5651. (sha256
  5652. (base32
  5653. "199b00cql07gf3rf4hh5ba34amnk0ai40zhx73dq1mpkn7ynxml7"))))
  5654. (build-system r-build-system)
  5655. (propagated-inputs
  5656. (list r-generics r-cpp11))
  5657. (native-inputs
  5658. (list r-knitr))
  5659. (home-page "https://cran.r-project.org/web/packages/lubridate/")
  5660. (synopsis "Make dealing with dates a little easier")
  5661. (description
  5662. "This package provides functions to work with date-times and time-spans:
  5663. fast and user friendly parsing of date-time data, extraction and updating of
  5664. components of a date-time (years, months, days, hours, minutes, and seconds),
  5665. algebraic manipulation on date-time and time-span objects. The @code{lubridate}
  5666. package has a consistent and memorable syntax that makes working with dates
  5667. easy and fun.")
  5668. (license license:gpl2)))
  5669. (define-public r-fdrtool
  5670. (package
  5671. (name "r-fdrtool")
  5672. (version "1.2.17")
  5673. (source
  5674. (origin
  5675. (method url-fetch)
  5676. (uri (cran-uri "fdrtool" version))
  5677. (sha256
  5678. (base32
  5679. "1pf554vb902vavgqc4c0kgghywbgcvr3lkkr414bxngavcd60lil"))))
  5680. (build-system r-build-system)
  5681. (home-page "http://strimmerlab.org/software/fdrtool/")
  5682. (synopsis "Estimation of false discovery rates and higher criticism")
  5683. (description
  5684. "This package provides tools to estimate tail area-based false discovery
  5685. rates as well as local false discovery rates for a variety of null
  5686. models (p-values, z-scores, correlation coefficients, t-scores). The
  5687. proportion of null values and the parameters of the null distribution are
  5688. adaptively estimated from the data. In addition, the package contains
  5689. functions for non-parametric density estimation (Grenander estimator), for
  5690. monotone regression (isotonic regression and antitonic regression with
  5691. weights), for computing the @dfn{greatest convex minorant} (GCM) and the
  5692. @dfn{least concave majorant} (LCM), for the half-normal and correlation
  5693. distributions, and for computing empirical @dfn{higher criticism} (HC) scores
  5694. and the corresponding decision threshold.")
  5695. (license license:gpl3+)))
  5696. (define-public r-forcats
  5697. (package
  5698. (name "r-forcats")
  5699. (version "0.5.1")
  5700. (source
  5701. (origin
  5702. (method url-fetch)
  5703. (uri (cran-uri "forcats" version))
  5704. (sha256
  5705. (base32
  5706. "12d2nv2w15085jscgidmjdnr1ryymciflcmal6ldmgp2fkl9dyy4"))))
  5707. (build-system r-build-system)
  5708. (propagated-inputs
  5709. (list r-ellipsis r-magrittr r-tibble r-rlang))
  5710. (native-inputs
  5711. (list r-knitr))
  5712. (home-page "https://forcats.tidyverse.org")
  5713. (synopsis "Tools for working with factors")
  5714. (description "This package provides helpers for reordering factor
  5715. levels (including moving specified levels to front, ordering by first
  5716. appearance, reversing, and randomly shuffling), and tools for modifying factor
  5717. levels (including collapsing rare levels into other, \"anonymizing\", and
  5718. manually \"recoding\").")
  5719. (license license:gpl3)))
  5720. (define-public r-tgstat
  5721. (let ((changeset "4f8e60c03598f49aff6f5beeab40f2b995377e9f")
  5722. (revision "1"))
  5723. (package
  5724. (name "r-tgstat")
  5725. (version (string-append "1.0.2-" revision "." (string-take changeset 7)))
  5726. (source
  5727. (origin
  5728. (method hg-fetch)
  5729. (uri (hg-reference
  5730. (url "https://bitbucket.org/tanaylab/tgstat")
  5731. (changeset changeset)))
  5732. (file-name (string-append name "-" version "-checkout"))
  5733. (sha256
  5734. (base32
  5735. "0ilkkyximy77zbncm91kdfqbxf0qyndg16pd3q3p6a3xc9qcmxvn"))))
  5736. (build-system r-build-system)
  5737. (arguments
  5738. `(#:phases
  5739. (modify-phases %standard-phases
  5740. (add-after 'unpack 'fix-isnan
  5741. (lambda _
  5742. (substitute* "src/tgstat.h"
  5743. (("#define isnan ::isnan")
  5744. "#define isnan std::isnan"))
  5745. #t)))))
  5746. (propagated-inputs
  5747. (list r-rcpp))
  5748. (home-page "https://bitbucket.org/tanaylab/tgstat/")
  5749. (synopsis "Tanay's group statistical utilities")
  5750. (description
  5751. "The goal of tgstat is to provide fast and efficient statistical
  5752. tools.")
  5753. (license license:gpl2))))
  5754. (define-public r-tgconfig
  5755. (let ((changeset "1e02c7614713bd0866c46f0c679a058f8c6d627e")
  5756. (revision "1"))
  5757. (package
  5758. (name "r-tgconfig")
  5759. (version (string-append "0.0.0.9000-" revision "." (string-take changeset 7)))
  5760. (source
  5761. (origin
  5762. (method hg-fetch)
  5763. (uri (hg-reference
  5764. (url "https://bitbucket.org/tanaylab/tgconfig")
  5765. (changeset changeset)))
  5766. (file-name (string-append name "-" version "-checkout"))
  5767. (sha256
  5768. (base32
  5769. "0xy6c7s7mn1yx191154bwbv1bl424bnvc80syqpl1vdl28ba46rj"))))
  5770. (build-system r-build-system)
  5771. (propagated-inputs
  5772. (list r-yaml))
  5773. (home-page "https://bitbucket.org/tanaylab/tgconfig/")
  5774. (synopsis "Infrastructure for managing package parameters")
  5775. (description
  5776. "The goal of tgconfig is to provide infrastructure for managing package
  5777. parameters.")
  5778. (license license:gpl3))))
  5779. (define-public r-catterplots
  5780. (let ((commit "ae17cd5e49ddda4ecfe0eba8a4c21df8c88e72c4")
  5781. (revision "3"))
  5782. (package
  5783. (name "r-catterplots")
  5784. (version (git-version "0" revision commit))
  5785. (source (origin
  5786. (method git-fetch)
  5787. (uri (git-reference
  5788. (url "https://github.com/Gibbsdavidl/CatterPlots")
  5789. (commit commit)))
  5790. (file-name (git-file-name name version))
  5791. (sha256
  5792. (base32
  5793. "0qa8liylffpxgdg8xcgjar5dsvczqhn3akd4w35113hnyg1m4xyg"))))
  5794. (build-system r-build-system)
  5795. (propagated-inputs
  5796. (list r-png))
  5797. (home-page "https://github.com/Gibbsdavidl/CatterPlots")
  5798. (synopsis "Scatter plots with cat shaped points")
  5799. (description "Did you ever wish you could make scatter plots with cat
  5800. shaped points? Now you can!")
  5801. (license license:asl2.0))))
  5802. (define-public r-colorout
  5803. (package
  5804. (name "r-colorout")
  5805. (version "1.2-2")
  5806. (source
  5807. (origin
  5808. (method git-fetch)
  5809. (uri (git-reference
  5810. (url "https://github.com/jalvesaq/colorout")
  5811. (commit (string-append "v" version))))
  5812. (file-name (git-file-name name version))
  5813. (sha256
  5814. (base32 "1rsx69wjpa73c6x2hacvvvbzdzxn7wg06gizf97kasjdlb7azmp3"))))
  5815. (build-system r-build-system)
  5816. (home-page "https://github.com/jalvesaq/colorout")
  5817. (synopsis "Colorize output in the R REPL")
  5818. (description "@code{colorout} is an R package that colorizes R output when
  5819. running in terminal emulator.
  5820. R STDOUT is parsed and numbers, negative numbers, dates in the standard
  5821. format, strings, and R constants are identified and wrapped by special ANSI
  5822. scape codes that are interpreted by terminal emulators as commands to colorize
  5823. the output. R STDERR is also parsed to identify the expressions warning and
  5824. error and their translations to many languages. If these expressions are
  5825. found, the output is colorized accordingly; otherwise, it is colorized as
  5826. STDERROR (blue, by default).
  5827. You can customize the colors according to your taste, guided by the color
  5828. table made by the command @code{show256Colors()}. You can also set the colors
  5829. to any arbitrary string. In this case, it is up to you to set valid values.")
  5830. (license license:gpl3+)))
  5831. (define-public r-nnlm
  5832. (let ((commit "4574bca9456fe2285b668b4c22a908cffbad10a0")
  5833. (revision "1"))
  5834. (package
  5835. (name "r-nnlm")
  5836. (version (git-version "0.4.4" revision commit))
  5837. (source
  5838. (origin
  5839. (method git-fetch)
  5840. (uri (git-reference
  5841. (url "https://github.com/linxihui/NNLM")
  5842. (commit commit)))
  5843. (file-name (git-file-name name version))
  5844. (sha256
  5845. (base32 "1qzvav4ch0j1k7jcqzk9cvl8dx79fapmvdzmzzyl8smscybhfgba"))))
  5846. (properties `((upstream-name . "NNLM")))
  5847. (build-system r-build-system)
  5848. (propagated-inputs (list r-rcpp r-rcpparmadillo r-rcppprogress))
  5849. (native-inputs (list r-knitr))
  5850. (home-page "https://github.com/linxihui/NNLM")
  5851. (synopsis "Fast and versatile non-negative matrix factorization")
  5852. (description
  5853. "This is a package for @dfn{Non-Negative Linear Models} (NNLM). It
  5854. implements fast sequential coordinate descent algorithms for non-negative
  5855. linear regression and @dfn{non-negative matrix factorization} (NMF). It
  5856. supports mean square error and Kullback-Leibler divergence loss. Many other
  5857. features are also implemented, including missing value imputation, domain
  5858. knowledge integration, designable W and H matrices and multiple forms of
  5859. regularizations.")
  5860. (license license:bsd-2))))
  5861. (define-public r-swne
  5862. (let ((commit "05fc3ee4e09b2c34d99c69d3b97cece4c1c34143")
  5863. (revision "1"))
  5864. (package
  5865. (name "r-swne")
  5866. (version (git-version "0.6.20" revision commit))
  5867. (source
  5868. (origin
  5869. (method git-fetch)
  5870. (uri (git-reference
  5871. (url "https://github.com/yanwu2014/swne")
  5872. (commit commit)))
  5873. (file-name (git-file-name name version))
  5874. (sha256
  5875. (base32 "0crlpg9kclbv4v8250p3086a3lk6f2hcq79psqkdylc1qnrx3kfx"))))
  5876. (properties `((upstream-name . "swne")))
  5877. (build-system r-build-system)
  5878. (propagated-inputs
  5879. (list r-fnn
  5880. r-ggplot2
  5881. r-ggrepel
  5882. r-hash
  5883. r-ica
  5884. r-igraph
  5885. r-irlba
  5886. r-jsonlite
  5887. r-liger
  5888. r-mass
  5889. r-matrix
  5890. r-mgcv
  5891. r-nnlm ;not listed but required at install time
  5892. r-plyr
  5893. r-proxy
  5894. r-rcolorbrewer
  5895. r-rcpp
  5896. r-rcpparmadillo
  5897. r-rcppeigen
  5898. r-reshape
  5899. r-reshape2
  5900. r-snow
  5901. r-umap
  5902. r-usedist))
  5903. (home-page "https://github.com/yanwu2014/swne")
  5904. (synopsis "Visualize high dimensional datasets")
  5905. (description
  5906. "@dfn{Similarity Weighted Nonnegative Embedding} (SWNE) is a method for
  5907. visualizing high dimensional datasets. SWNE uses Nonnegative Matrix
  5908. Factorization to decompose datasets into latent factors, projects those
  5909. factors onto 2 dimensions, and embeds samples and key features in 2 dimensions
  5910. relative to the factors. SWNE can capture both the local and global dataset
  5911. structure, and allows relevant features to be embedded directly onto the
  5912. visualization, facilitating interpretation of the data.")
  5913. (license license:gpl2))))
  5914. (define-public r-languageserver
  5915. (let ((commit "004da9388f9b19990f031c8dc9b527fb406378ba")
  5916. (revision "1"))
  5917. (package
  5918. (name "r-languageserver")
  5919. (version (git-version "0.3.12" revision commit))
  5920. (source
  5921. (origin
  5922. (method git-fetch)
  5923. (uri (git-reference
  5924. (url "https://github.com/REditorSupport/languageserver")
  5925. (commit commit)))
  5926. (file-name (git-file-name name version))
  5927. (sha256
  5928. (base32 "05f22bjpc87fngzq4jsk2q2yb2i3ha03b377r0wx15d0b8xaa1ix"))))
  5929. (properties `((upstream-name . "languageserver")))
  5930. (build-system r-build-system)
  5931. (propagated-inputs
  5932. (list r-callr
  5933. r-collections
  5934. r-fs
  5935. r-jsonlite
  5936. r-lintr
  5937. r-r6
  5938. r-roxygen2
  5939. r-stringi
  5940. r-styler
  5941. r-xml2
  5942. r-xmlparsedata))
  5943. (home-page "https://github.com/REditorSupport/languageserver")
  5944. (synopsis "Language Server for R")
  5945. (description
  5946. "This package provides an implementation of the Language Server
  5947. Protocol for R. The
  5948. @url{https://microsoft.github.io/language-server-protocol/,Language Server
  5949. protocol} is used by an editor client to integrate features like auto
  5950. completion.")
  5951. (license license:expat))))
  5952. (define-public python-rpy2
  5953. (package
  5954. (name "python-rpy2")
  5955. (version "3.4.5")
  5956. (source
  5957. (origin
  5958. (method url-fetch)
  5959. (uri (pypi-uri "rpy2" version))
  5960. (sha256
  5961. (base32
  5962. "1cysswxr5glrdblyl2zsmywcj7xhxn3wmyihxinrz9gm8gmaacax"))))
  5963. (build-system python-build-system)
  5964. (arguments
  5965. '(#:phases
  5966. (modify-phases %standard-phases
  5967. (replace 'check
  5968. (lambda* (#:key outputs inputs #:allow-other-keys)
  5969. (let ((cwd (getcwd)))
  5970. (setenv "TZ" "UTC"))
  5971. ;; test_vector_complex has issues when run in our environment.
  5972. (invoke "pytest" "-v" "rpy2/tests/"
  5973. "-k" "not test_vector_complex"))))))
  5974. (propagated-inputs
  5975. (list python-cffi
  5976. python-six
  5977. python-jinja2
  5978. python-numpy
  5979. python-pandas
  5980. python-pytz
  5981. python-ipython
  5982. python-tzlocal))
  5983. (inputs
  5984. (list readline
  5985. icu4c
  5986. pcre
  5987. r-minimal
  5988. r-survival
  5989. r-ggplot2
  5990. r-rsqlite
  5991. r-dplyr
  5992. r-dbplyr
  5993. python-numpy))
  5994. (native-inputs
  5995. (list zlib python-pytest))
  5996. (home-page "https://rpy2.github.io")
  5997. (synopsis "Python interface to the R language")
  5998. (description "rpy2 is a redesign and rewrite of rpy. It is providing a
  5999. low-level interface to R from Python, a proposed high-level interface,
  6000. including wrappers to graphical libraries, as well as R-like structures and
  6001. functions.")
  6002. ;; Any of these licenses can be picked for the R interface. The whole
  6003. ;; project is released under GPLv2+ according to the license declaration
  6004. ;; in "setup.py".
  6005. (license (list license:mpl2.0 license:gpl2+ license:lgpl2.1+))))
  6006. (define-public java-jdistlib
  6007. (package
  6008. (name "java-jdistlib")
  6009. (version "0.4.5")
  6010. (source (origin
  6011. (method url-fetch)
  6012. (uri (string-append "mirror://sourceforge/jdistlib/jdistlib-"
  6013. version "-src.jar"))
  6014. (sha256
  6015. (base32
  6016. "1pkj8aahw9ydr1isbaqrkd05nvq98ik5jwwhf3yf3rky3z869v11"))))
  6017. (build-system ant-build-system)
  6018. (arguments
  6019. `(#:jar-name "jdistlib.jar"
  6020. #:jdk ,icedtea-8
  6021. #:tests? #f ; no dedicated test directory
  6022. #:phases
  6023. (modify-phases %standard-phases
  6024. (add-after 'unpack 'fix-broken-encoding
  6025. (lambda _
  6026. (with-fluids ((%default-port-encoding "ISO-8859-1"))
  6027. (substitute* "src/jdistlib/Beta.java"
  6028. (("Scheff.+-Tukey") "Scheffe-Tukey")))
  6029. #t)))))
  6030. (propagated-inputs
  6031. (list java-jtransforms))
  6032. (native-inputs
  6033. (list java-junit))
  6034. (home-page "http://jdistlib.sourceforge.net/")
  6035. (synopsis "Java library of statistical distributions")
  6036. (description "JDistlib is the Java Statistical Distribution Library, a
  6037. Java package that provides routines for various statistical distributions.")
  6038. ;; The files that were translated from R code are under GPLv2+; some files
  6039. ;; are under the GPLv3, which is a mistake. The author confirmed in an
  6040. ;; email that this whole project should be under GPLv2+.
  6041. (license license:gpl2+)))
  6042. (define-public emacs-ess
  6043. ;; Latest release is old. This is not the latest commit either due to bug
  6044. ;; reported here: <https://github.com/emacs-ess/ESS/issues/987>.
  6045. (let ((commit "24da603184ce39246611dd5b8602e769d7ebd5bf")
  6046. (version "18.10.2")
  6047. (revision "0"))
  6048. (package
  6049. (name "emacs-ess")
  6050. (version (git-version version revision commit))
  6051. (source
  6052. (origin
  6053. (method git-fetch)
  6054. (uri (git-reference
  6055. (url "https://github.com/emacs-ess/ESS")
  6056. (commit commit)))
  6057. (sha256
  6058. (base32 "0j98lv07nzwzd54d4dgcfz01wy5gj48m0mnirxzh5r45ik2myh1r"))
  6059. (file-name (git-file-name name version))
  6060. (modules '((guix build utils)))
  6061. (snippet
  6062. '(begin
  6063. ;; Stop ESS from trying to bundle an external julia-mode.el.
  6064. (substitute* "lisp/Makefile"
  6065. ((" \\$\\(JULIAS)") "")
  6066. (("\ttest.*julia-mode.*\\.el") ""))
  6067. ;; Only build docs in info format.
  6068. (substitute* "doc/Makefile"
  6069. (("all : info text")
  6070. "all : info")
  6071. (("install: install-info install-other-docs")
  6072. "install: install-info"))
  6073. ;; Stop install-info from trying to update the info directory.
  6074. (substitute* "doc/Makefile"
  6075. ((".*/dir.*") ""))
  6076. ;; Fix r-help-mode test.
  6077. (substitute* "test/ess-test-r.el"
  6078. (("\\(equal ess-help-object \"plot.default\")") "t"))
  6079. ;; Avoid generating ess-autoloads.el twice.
  6080. (substitute* "Makefile"
  6081. (("all: lisp doc etc autoloads")
  6082. "all: lisp doc etc"))
  6083. ;; Install to correct directories.
  6084. (substitute* "Makefile"
  6085. (("mkdir -p \\$\\(ESSDESTDIR)")
  6086. "$(MAKE) -C lisp install; $(MAKE) -C doc install")
  6087. (("\\$\\(INSTALL) -R \\./\\* \\$\\(ESSDESTDIR)/")
  6088. "$(MAKE) -C etc install"))
  6089. #t))))
  6090. (build-system gnu-build-system)
  6091. (arguments
  6092. (let ((base-directory "/share/emacs/site-lisp"))
  6093. `(#:make-flags (list (string-append "PREFIX=" %output)
  6094. (string-append "ETCDIR=" %output
  6095. ,base-directory "/etc")
  6096. (string-append "LISPDIR=" %output
  6097. ,base-directory)
  6098. (string-append "INFODIR=" %output
  6099. "/share/info"))
  6100. #:phases
  6101. (modify-phases %standard-phases
  6102. (delete 'configure)
  6103. (replace 'check
  6104. (lambda _ (invoke "make" "test")))))))
  6105. (native-inputs
  6106. (list perl r-roxygen2 texinfo))
  6107. (inputs
  6108. `(("emacs" ,emacs-minimal)
  6109. ("r-minimal" ,r-minimal)))
  6110. (propagated-inputs
  6111. (list emacs-julia-mode))
  6112. (home-page "https://ess.r-project.org/")
  6113. (synopsis "Emacs mode for statistical analysis programs")
  6114. (description
  6115. "Emacs Speaks Statistics (ESS) is an add-on package for GNU Emacs. It
  6116. is designed to support editing of scripts and interaction with various
  6117. statistical analysis programs such as R, Julia, and JAGS.")
  6118. (license license:gpl3+))))
  6119. (define-public emacs-poly-r
  6120. (package
  6121. (name "emacs-poly-r")
  6122. (version "0.2.2")
  6123. (source
  6124. (origin
  6125. (method git-fetch)
  6126. (uri (git-reference
  6127. (url "https://github.com/polymode/poly-R")
  6128. (commit (string-append "v" version))))
  6129. (file-name (git-file-name name version))
  6130. (sha256
  6131. (base32 "0a4wx73jkngw5nbq1fa4jfhba6bsmyn6vnsf887x3xhb5v3ykhsg"))))
  6132. (build-system emacs-build-system)
  6133. (propagated-inputs
  6134. (list emacs-ess emacs-poly-noweb emacs-polymode-markdown
  6135. emacs-polymode))
  6136. (properties '((upstream-name . "poly-R")))
  6137. (home-page "https://github.com/polymode/poly-markdown")
  6138. (synopsis "Polymodes for the R language")
  6139. (description
  6140. "This package provides a number of polymodes for working with mixed R
  6141. files, including Rmarkdown files.")
  6142. (license license:gpl3+)))
  6143. (define-public readstat
  6144. (package
  6145. (name "readstat")
  6146. (version "1.1.5")
  6147. (source
  6148. (origin
  6149. (method git-fetch)
  6150. (uri (git-reference
  6151. (url "https://github.com/WizardMac/ReadStat")
  6152. (commit (string-append "v" version))))
  6153. (file-name (git-file-name name version))
  6154. (sha256
  6155. (base32 "00sdmaq0qzp6kyv53fpfi6jf3iv4pd0ap0gmw3mbfip52bbnl55w"))))
  6156. (build-system gnu-build-system)
  6157. (native-inputs
  6158. (list autoconf automake gnu-gettext libtool))
  6159. (inputs
  6160. (list zlib)) ; libz
  6161. (synopsis "Convert SAS, Stata, and SPSS files")
  6162. (description "Command-line tool and C library for reading files from
  6163. popular stats packages like SAS, Stata and SPSS.")
  6164. (home-page "https://github.com/WizardMac/ReadStat")
  6165. (license license:expat)))
  6166. (define-public r-quantpsyc
  6167. (package
  6168. (name "r-quantpsyc")
  6169. (version "1.5")
  6170. (source
  6171. (origin
  6172. (method url-fetch)
  6173. (uri (cran-uri "QuantPsyc" version))
  6174. (sha256
  6175. (base32
  6176. "1i9bh88r8zxndzjqsj14qw64gnvm5a9kvhjhzk3qsrvl3qzjgh93"))))
  6177. (properties `((upstream-name . "QuantPsyc")))
  6178. (build-system r-build-system)
  6179. (propagated-inputs
  6180. (list r-boot r-mass))
  6181. (home-page "https://cran.r-project.org/web/packages/QuantPsyc/")
  6182. (synopsis "Quantitative Psychology Tools")
  6183. (description
  6184. "Contains functions useful for data screening, testing moderation,
  6185. mediation and estimating power.")
  6186. (license license:gpl2+)))
  6187. (define-public r-clubsandwich
  6188. (package
  6189. (name "r-clubsandwich")
  6190. (version "0.5.5")
  6191. (source
  6192. (origin
  6193. (method url-fetch)
  6194. (uri (cran-uri "clubSandwich" version))
  6195. (sha256
  6196. (base32
  6197. "1ifnc2rg5agf7lpilmm27iq0af7ghfhkvwykajhvykgf6h4clvhf"))))
  6198. (properties `((upstream-name . "clubSandwich")))
  6199. (build-system r-build-system)
  6200. (propagated-inputs
  6201. (list r-sandwich))
  6202. (native-inputs (list r-knitr))
  6203. (home-page "https://github.com/jepusto/clubSandwich")
  6204. (synopsis "Cluster-Robust (Sandwich) Variance Estimators with Small-Sample
  6205. Corrections")
  6206. (description
  6207. "Provides several cluster-robust variance estimators (i.e.,
  6208. sandwich estimators) for ordinary and weighted least squares linear regression
  6209. models, including the bias-reduced linearization estimator introduced by Bell
  6210. and McCaffrey (2002)
  6211. @url{http://www.statcan.gc.ca/pub/12-001-x/2002002/article/9058-eng.pdf} and
  6212. developed further by Pustejovsky and Tipton (2017)
  6213. @url{doi:10.1080/07350015.2016.1247004}. The package includes functions for estimating
  6214. the variance- covariance matrix and for testing single- and multiple-
  6215. contrast hypotheses based on Wald test statistics. Tests of single regression
  6216. coefficients use Satterthwaite or saddle-point corrections. Tests of multiple-
  6217. contrast hypotheses use an approximation to Hotelling's T-squared distribution.
  6218. Methods are provided for a variety of fitted models, including @code{lm()} and
  6219. @code{mlm} objects, @code{glm()}, ivreg (from package @code{AER}), @code{plm()}
  6220. (from package @code{plm}), @code{gls()} and @code{lme()} (from @code{nlme}),
  6221. @code{robu()} (from @code{robumeta}), and @code{rma.uni()} and @code{rma.mv()}
  6222. (from @code{metafor}).")
  6223. (license license:gpl3)))
  6224. (define-public r-puniform
  6225. (package
  6226. (name "r-puniform")
  6227. (version "0.2.4")
  6228. (source
  6229. (origin
  6230. (method url-fetch)
  6231. (uri (cran-uri "puniform" version))
  6232. (sha256
  6233. (base32
  6234. "0v2977y9cwjx74xk0ig745g09wn7nrcsrg4f6v315sglsm18iaa8"))))
  6235. (properties `((upstream-name . "puniform")))
  6236. (build-system r-build-system)
  6237. (propagated-inputs
  6238. (list r-adgoftest r-metafor r-rcpp r-rcpparmadillo))
  6239. (home-page
  6240. "https://github.com/RobbievanAert/puniform")
  6241. (synopsis
  6242. "Meta-Analysis Methods Correcting for Publication Bias")
  6243. (description
  6244. "This package provides meta-analysis methods that correct for publication
  6245. bias and outcome reporting bias. Four methods and a visual tool are currently
  6246. included in the package.
  6247. @enumerate
  6248. @item The p-uniform method as described in van Assen, van Aert, and Wicherts
  6249. (2015) @url{doi:10.1037/met0000025} can be used for estimating the average
  6250. effect size, testing the null hypothesis of no effect, and testing for
  6251. publication bias using only the statistically significant effect sizes of
  6252. primary studies.
  6253. @item The p-uniform* method as described in van Aert and van Assen (2019)
  6254. @url{doi:10.31222/osf.io/zqjr9}. This method is an extension of the p-uniform
  6255. method that allows for estimation of the average effect size and the
  6256. between-study variance in a meta-analysis, and uses both the statistically
  6257. significant and nonsignificant effect sizes.
  6258. @item The hybrid method as described in van Aert and van Assen (2017)
  6259. @url{doi:10.3758/s13428-017-0967-6}. The hybrid method is a meta-analysis
  6260. method for combining an original study and replication and while taking into
  6261. account statistical significance of the original study. The p-uniform and
  6262. hybrid method are based on the statistical theory that the distribution of
  6263. p-values is uniform conditional on the population effect size.
  6264. @item
  6265. The fourth method in the package is the Snapshot Bayesian Hybrid Meta-Analysis
  6266. Method as described in van Aert and van Assen (2018)
  6267. @url{doi:10.1371/journal.pone.0175302}. This method computes posterior
  6268. probabilities for four true effect sizes (no, small, medium, and large) based
  6269. on an original study and replication while taking into account publication bias
  6270. in the original study. The method can also be used for computing the required
  6271. sample size of the replication akin to power analysis in null hypothesis
  6272. significance testing.
  6273. @end enumerate
  6274. The meta-plot is a visual tool for meta-analysis that
  6275. provides information on the primary studies in the meta-analysis, the results
  6276. of the meta-analysis, and characteristics of the research on the effect under
  6277. study (van Assen and others, 2020).
  6278. Helper functions to apply the Correcting for Outcome Reporting Bias (CORB)
  6279. method to correct for outcome reporting bias in a meta-analysis (van Aert &
  6280. Wicherts, 2020).")
  6281. (license license:gpl2+)))
  6282. (define-public r-esc
  6283. (package
  6284. (name "r-esc")
  6285. (version "0.5.1")
  6286. (source
  6287. (origin
  6288. (method url-fetch)
  6289. (uri (cran-uri "esc" version))
  6290. (sha256
  6291. (base32
  6292. "0gns7gz55p6pha05413r3hlvd7f2v1amxkg13d197mab1ypqic7q"))))
  6293. (properties `((upstream-name . "esc")))
  6294. (build-system r-build-system)
  6295. (home-page "https://strengejacke.github.io/esc/")
  6296. (synopsis
  6297. "Effect Size Computation for Meta Analysis")
  6298. (description
  6299. "Implementation of the web-based
  6300. @url{http://www.campbellcollaboration.org/escalc/html/EffectSizeCalculator-Home.php,'Practical
  6301. Meta-Analysis Effect Size Calculator'} from David B. Wilson in R. Based on the
  6302. input, the effect size can be returned as standardized mean difference, Cohen's
  6303. f, Hedges' g, Pearson's r or Fisher's transformation z, odds ratio or log odds,
  6304. or eta squared effect size.")
  6305. (license license:gpl3)))
  6306. (define-public r-kknn
  6307. (package
  6308. (name "r-kknn")
  6309. (version "1.3.1")
  6310. (source
  6311. (origin
  6312. (method url-fetch)
  6313. (uri (cran-uri "kknn" version))
  6314. (sha256
  6315. (base32
  6316. "1nzkg3dxaiqp87p56wm895qx5xn86hv5hjr73qvl1yiaxiq0x112"))))
  6317. (properties `((upstream-name . "kknn")))
  6318. (build-system r-build-system)
  6319. (propagated-inputs
  6320. (list r-igraph r-matrix))
  6321. (home-page "https://github.com/KlausVigo/kknn")
  6322. (synopsis "Weighted k-Nearest Neighbors")
  6323. (description
  6324. "Weighted k-Nearest Neighbors for Classification, Regression and Clustering.")
  6325. (license license:gpl2+)))
  6326. (define-public r-logspline
  6327. (package
  6328. (name "r-logspline")
  6329. (version "2.1.16")
  6330. (source
  6331. (origin
  6332. (method url-fetch)
  6333. (uri (cran-uri "logspline" version))
  6334. (sha256
  6335. (base32
  6336. "12hkdi77vkic05p2vhap025xdcg1n53ywm239v18713pihdlj63l"))))
  6337. (properties `((upstream-name . "logspline")))
  6338. (build-system r-build-system)
  6339. (native-inputs (list gfortran))
  6340. (home-page
  6341. "https://cran.r-project.org/web/packages/logspline/")
  6342. (synopsis
  6343. "Routines for Logspline Density Estimation")
  6344. (description
  6345. "Contains routines for logspline density estimation. The function
  6346. @code{oldlogspline()} uses the same algorithm as the logspline package version
  6347. 1.0.x; i.e. the Kooperberg and Stone (1992) algorithm (with an improved
  6348. interface). The recommended routine @code{logspline()} uses an algorithm from
  6349. @url{doi:10.1214/aos/1031594728,Stone et al (1997)}.")
  6350. (license license:asl2.0)))
  6351. (define-public r-effects
  6352. (package
  6353. (name "r-effects")
  6354. (version "4.2-1")
  6355. (source
  6356. (origin
  6357. (method url-fetch)
  6358. (uri (cran-uri "effects" version))
  6359. (sha256
  6360. (base32
  6361. "0h3n2kd43fddy29hlv1nckw3wglykwrgk1hp8khb0pnm2i12b5sk"))))
  6362. (properties `((upstream-name . "effects")))
  6363. (build-system r-build-system)
  6364. (propagated-inputs
  6365. (list r-cardata
  6366. r-colorspace
  6367. r-estimability
  6368. r-insight
  6369. r-lattice
  6370. r-lme4
  6371. r-nnet
  6372. r-survey))
  6373. (native-inputs
  6374. (list r-knitr r-car))
  6375. (home-page "https://www.r-project.org")
  6376. (synopsis
  6377. "Effect Displays for Linear, Generalized Linear, and Other Models")
  6378. (description
  6379. "Graphical and tabular effect displays, e.g., of interactions, for
  6380. various statistical models with linear predictors.")
  6381. (license license:gpl2+)))
  6382. (define-public r-bayesfactor
  6383. (package
  6384. (name "r-bayesfactor")
  6385. (version "0.9.12-4.3")
  6386. (source
  6387. (origin
  6388. (method url-fetch)
  6389. (uri (cran-uri "BayesFactor" version))
  6390. (sha256
  6391. (base32
  6392. "171hbr445v8mq4hqi1k8q3h8zqsccwjv0a2mj98h9b77667ziyfw"))))
  6393. (properties `((upstream-name . "BayesFactor")))
  6394. (build-system r-build-system)
  6395. (propagated-inputs
  6396. (list r-coda
  6397. r-gtools
  6398. r-hypergeo
  6399. r-matrix
  6400. r-matrixmodels
  6401. r-mvtnorm
  6402. r-pbapply
  6403. r-rcpp
  6404. r-rcppeigen
  6405. r-stringr))
  6406. (native-inputs (list r-knitr))
  6407. (home-page
  6408. "https://richarddmorey.github.io/BayesFactor/")
  6409. (synopsis
  6410. "Computation of Bayes Factors for Common Designs")
  6411. (description
  6412. "This package provides a suite of functions for computing various Bayes
  6413. factors for simple designs, including contingency tables, one- and two-sample
  6414. designs, one-way designs, general ANOVA designs, and linear regression.")
  6415. (license license:gpl2)))
  6416. (define-public r-norm
  6417. (package
  6418. (name "r-norm")
  6419. (version "1.0-9.5")
  6420. (source (origin
  6421. (method url-fetch)
  6422. (uri (cran-uri "norm" version))
  6423. (sha256
  6424. (base32
  6425. "01j1h412yfjx5r4dd0w8rhlf55997spgb6zd6pawy19rgw0byp1h"))))
  6426. (build-system r-build-system)
  6427. (native-inputs
  6428. (list gfortran))
  6429. (home-page "https://cran.r-project.org/web/packages/norm/")
  6430. (synopsis "Analysis of multivariate normal datasets with missing values")
  6431. (description "Multiple imputation of multivariate continuous data under a
  6432. normal model.")
  6433. ;; Custom license, see https://cran.r-project.org/web/packages/norm/LICENSE.
  6434. (license (license:non-copyleft "file://LICENSE"))))
  6435. (define-public r-naniar
  6436. (package
  6437. (name "r-naniar")
  6438. (version "0.6.1")
  6439. (source (origin
  6440. (method url-fetch)
  6441. (uri (cran-uri "naniar" version))
  6442. (sha256
  6443. (base32
  6444. "0l3l2x85v3srilww483kpgp4zlwixyml257b0cqly8kcpwawlinm"))))
  6445. (build-system r-build-system)
  6446. (propagated-inputs
  6447. (list r-dplyr
  6448. r-norm
  6449. r-forcats
  6450. r-ggplot2
  6451. r-glue
  6452. r-magrittr
  6453. r-purrr
  6454. r-rlang
  6455. r-tibble
  6456. r-tidyr
  6457. r-upsetr
  6458. r-viridis
  6459. r-visdat))
  6460. (native-inputs
  6461. (list r-knitr))
  6462. (home-page "https://github.com/njtierney/naniar")
  6463. (synopsis
  6464. "Data structures, summaries, and visualisations for missing data")
  6465. (description
  6466. "Missing values are ubiquitous in data and need to be explored and
  6467. handled in the initial stages of analysis. The package provides data structures
  6468. and functions that facilitate the plotting of missing values and examination of
  6469. imputations. This allows missing data dependencies to be explored with minimal
  6470. deviation from the common work patterns of @code{ggplot2} and tidy data.")
  6471. (license license:expat)))
  6472. (define-public r-glinternet
  6473. (package
  6474. (name "r-glinternet")
  6475. (version "1.0.12")
  6476. (source
  6477. (origin
  6478. (method url-fetch)
  6479. (uri (cran-uri "glinternet" version))
  6480. (sha256
  6481. (base32
  6482. "0aphdscj0s6kqxlkgqkw2d6snrylz6hiis6307pl8ldh7q5cvm33"))))
  6483. (build-system r-build-system)
  6484. (home-page "http://web.stanford.edu/~hastie/Papers/glinternet_jcgs.pdf")
  6485. (synopsis "Learning interactions via hierarchical group-lasso regularization")
  6486. (description "Group-Lasso INTERaction-NET. Fits linear pairwise-interaction
  6487. models that satisfy strong hierarchy: if an interaction coefficient is estimated
  6488. to be nonzero, then its two associated main effects also have nonzero estimated
  6489. coefficients. Accommodates categorical variables (factors) with arbitrary
  6490. numbers of levels, continuous variables, and combinations thereof. Implements
  6491. the machinery described in the paper \"Learning interactions via hierarchical
  6492. group-lasso regularization\" (JCGS 2015, Volume 24, Issue 3).
  6493. Michael Lim & Trevor Hastie (2015)")
  6494. (license license:gpl2)))
  6495. (define-public r-datasaurus
  6496. (package
  6497. (name "r-datasaurus")
  6498. (version "0.1.4")
  6499. (source
  6500. (origin
  6501. (method url-fetch)
  6502. (uri (cran-uri "datasauRus" version))
  6503. (sha256
  6504. (base32
  6505. "1w1yhwwrmh95bklacz44wjwynxd8cj3z8b9zvsnzmk18m5a4k0fl"))))
  6506. (properties `((upstream-name . "datasauRus")))
  6507. (build-system r-build-system)
  6508. (native-inputs (list r-knitr))
  6509. (home-page
  6510. "https://github.com/lockedata/datasauRus")
  6511. (synopsis "Datasets from the Datasaurus Dozen")
  6512. (description
  6513. "The Datasaurus Dozen is a set of datasets with the same summary
  6514. statistics. They retain the same summary statistics despite having radically
  6515. different distributions. The datasets represent a larger and quirkier object
  6516. lesson that is typically taught via Anscombe's Quartet (available in the
  6517. 'datasets' package). Anscombe's Quartet contains four very different
  6518. distributions with the same summary statistics and as such highlights the value
  6519. of visualisation in understanding data, over and above summary statistics. As
  6520. well as being an engaging variant on the Quartet, the data is generated in a
  6521. novel way. The simulated annealing process used to derive datasets from the
  6522. original Datasaurus is detailed in \"Same Stats, Different Graphs: Generating
  6523. Datasets with Varied Appearance and Identical Statistics through Simulated
  6524. Annealing\" @url{doi:10.1145/3025453.3025912}.")
  6525. (license license:expat)))
  6526. (define-public r-lmom
  6527. (package
  6528. (name "r-lmom")
  6529. (version "2.8")
  6530. (source
  6531. (origin
  6532. (method url-fetch)
  6533. (uri (cran-uri "lmom" version))
  6534. (sha256
  6535. (base32 "1lnj41gynaar5isyijg5nbll64qdxa12dnqvz7lxhaclqcjskqna"))))
  6536. (properties `((upstream-name . "lmom")))
  6537. (build-system r-build-system)
  6538. (native-inputs (list gfortran))
  6539. (home-page "https://cran.r-project.org/package=lmom")
  6540. (synopsis "L-Moments for R")
  6541. (description
  6542. "This package provides functions related to L-moments: computation
  6543. of L-moments and trimmed L-moments of distributions and data samples;
  6544. parameter estimation; L-moment ratio diagram; plot vs. quantiles of an
  6545. extreme-value distribution.")
  6546. (license license:cpl1.0)))
  6547. (define-public r-gld
  6548. (package
  6549. (name "r-gld")
  6550. (version "2.6.4")
  6551. (source
  6552. (origin
  6553. (method url-fetch)
  6554. (uri (cran-uri "gld" version))
  6555. (sha256
  6556. (base32 "08rkv7g6ci969vh9fbyg3lrpfmjhbiwzdhcjs9j6s9bf3gpdmdhd"))))
  6557. (properties `((upstream-name . "gld")))
  6558. (build-system r-build-system)
  6559. (propagated-inputs (list r-e1071 r-lmom))
  6560. (home-page
  6561. "https://cran.r-project.org/package=gld")
  6562. (synopsis
  6563. "Estimation and Use of the Generalised (Tukey) Lambda Distribution")
  6564. (description
  6565. "The generalised lambda distribution, or Tukey lambda distribution,
  6566. provides a wide variety of shapes with one functional form. This package
  6567. provides random numbers, quantiles, probabilities, densities and
  6568. density quantiles for four different types of the distribution, the FKML
  6569. (Freimer et al 1988), RS (Ramberg and Schmeiser 1974), GPD (van Staden
  6570. and Loots 2009) and FM5 - see documentation for details. It provides the
  6571. density function, distribution function, and Quantile-Quantile plots.
  6572. It implements a variety of estimation methods for the distribution,
  6573. including diagnostic plots. Estimation methods include the starship (all
  6574. 4 types), method of L-Moments for the GPD and FKML types, and a number
  6575. of methods for only the FKML type. These include maximum likelihood,
  6576. maximum product of spacings, Titterington's method, Moments, Trimmed
  6577. L-Moments and Distributional Least Absolutes.")
  6578. (license license:gpl2+)))
  6579. (define-public r-exact
  6580. (package
  6581. (name "r-exact")
  6582. (version "3.1")
  6583. (source
  6584. (origin
  6585. (method url-fetch)
  6586. (uri (cran-uri "Exact" version))
  6587. (sha256
  6588. (base32 "1kz3hw11sl142mai4ly2r85rwdbjz8q7b38ybmjym6r0n5qmqzyn"))))
  6589. (properties `((upstream-name . "Exact")))
  6590. (build-system r-build-system)
  6591. (propagated-inputs (list r-rootsolve))
  6592. (home-page "https://cran.r-project.org/package=Exact")
  6593. (synopsis "Unconditional Exact Test")
  6594. (description
  6595. "Performs unconditional exact tests and power calculations for 2x2
  6596. contingency tables. For comparing two independent proportions, performs
  6597. @url{doi:10.1038/156177a0, Barnard's test (1945)} using the original CSM
  6598. test (@url{doi:10.1093/biomet/34.1-2.123, Barnard (1947)}), using Fisher's
  6599. p-value referred to as @url{doi:10.1111/j.1467-9574.1970.tb00104.x,
  6600. Boschloo's test (1970)}, or using a Z-statistic (@url{doi:10.2307/2981892,
  6601. Suissa and Shuster (1985)}). For comparing two binary proportions,
  6602. performs unconditional exact test using McNemar's Z-statistic
  6603. (@url{doi:10.1191/0962280203sm312ra, Berger and Sidik (2003)}), using
  6604. McNemar's Z-statistic with continuity correction, or using CSM test.
  6605. Calculates confidence intervals for the difference in proportion.")
  6606. (license license:gpl2)))
  6607. (define-public r-desctools
  6608. (package
  6609. (name "r-desctools")
  6610. (version "0.99.44")
  6611. (source
  6612. (origin
  6613. (method url-fetch)
  6614. (uri (cran-uri "DescTools" version))
  6615. (sha256
  6616. (base32 "04wp3sp6sahgq167465y38y13h1ia5a4zqazysacpjxd1if0578j"))))
  6617. (properties `((upstream-name . "DescTools")))
  6618. (build-system r-build-system)
  6619. (propagated-inputs
  6620. (list r-bh
  6621. r-boot
  6622. r-data-table
  6623. r-exact
  6624. r-expm
  6625. r-gld
  6626. r-mass
  6627. r-mvtnorm
  6628. r-rcpp
  6629. r-rstudioapi))
  6630. (native-inputs (list gfortran))
  6631. (home-page "https://andrisignorell.github.io/DescTools/")
  6632. (synopsis "Tools for Descriptive Statistics")
  6633. (description
  6634. "This package provides a collection of miscellaneous basic statistic
  6635. functions and convenience wrappers for efficiently describing data.
  6636. The author's intention was to create a toolbox, which facilitates the
  6637. (notoriously time consuming) first descriptive tasks in data analysis,
  6638. consisting of calculating descriptive statistics, drawing graphical
  6639. summaries and reporting the results. The package contains furthermore
  6640. functions to produce documents using MS Word (or PowerPoint) and functions
  6641. to import data from Excel. Many of the included functions can be found
  6642. scattered in other packages and other sources written partly by Titans
  6643. of R. The reason for collecting them here, was primarily to have them
  6644. consolidated in ONE instead of dozens of packages (which themselves might
  6645. depend on other packages which are not needed at all), and to provide a
  6646. common and consistent interface as far as function and arguments naming,
  6647. NA handling, recycling rules etc. are concerned. Google style guides
  6648. were used as naming rules (in absence of convincing alternatives).
  6649. The BigCamelCase style was consequently applied to functions borrowed
  6650. from contributed R packages as well.")
  6651. (license license:gpl2+)))
  6652. (define-public xlispstat
  6653. (let ((commit "f1bea6053df658ee48612bf1f63c35de99e2c649")
  6654. (revision "0"))
  6655. (package
  6656. (name "xlispstat")
  6657. (version (git-version "3.52.23" revision commit))
  6658. (source (origin
  6659. (method git-fetch)
  6660. (uri (git-reference
  6661. (url "https://github.com/jhbadger/xlispstat.git")
  6662. (commit commit)))
  6663. (file-name (git-file-name name version))
  6664. (sha256
  6665. (base32
  6666. "1p0cmgy19kbkxia139cb5w9dnkp2cdqp5n3baag6cq3prn3n71mf"))))
  6667. (build-system gnu-build-system)
  6668. (arguments
  6669. `(#:parallel-build? #f ; Parallel builds are not supported
  6670. #:configure-flags (list "--with-gcc")
  6671. #:phases
  6672. (modify-phases %standard-phases
  6673. (replace 'check
  6674. (lambda* (#:key tests? #:allow-other-keys)
  6675. (when tests?
  6676. (with-output-to-file "exit.lsp"
  6677. (lambda () (display "(exit)")))
  6678. (invoke "./xlisp" "tests/test" "exit")))))))
  6679. (inputs (list tcsh
  6680. libx11
  6681. libxmu
  6682. libxext
  6683. libxpm
  6684. libxaw
  6685. ncurses
  6686. gnuplot))
  6687. (native-inputs (list pkg-config))
  6688. (synopsis "Statistical analysis environment with interactive graphics")
  6689. (description "XLISP-STAT is a statistical environment based on a Lisp
  6690. dialect called XLISP. To facilitate statistical computations, standard
  6691. functions for addition, logarithms, etc., have been modified to operate on
  6692. lists and arrays of numbers, and a number of basic statistical functions have
  6693. been added. Many of these functions have been written in Lisp, and additional
  6694. functions can be added easily by a user. Several basic forms of plots,
  6695. including histograms, scatterplots, rotatable plots and scatterplot matrices
  6696. are provided. These plots support various forms of interactive highlighting
  6697. operations and can be linked so points highlighted in one plot will be
  6698. highlighted in all linked plots. Interactions with the plots are controlled
  6699. by the mouse, menus and dialog boxes. An object-oriented programming system
  6700. is used to allow menus, dialogs, and the response to mouse actions to be
  6701. customized.")
  6702. (home-page "http://homepage.divms.uiowa.edu/~luke/xls/xlsinfo/")
  6703. (license license:expat))))
  6704. (define-public r-rlrsim
  6705. (package
  6706. (name "r-rlrsim")
  6707. (version "3.1-6")
  6708. (source
  6709. (origin
  6710. (method url-fetch)
  6711. (uri (cran-uri "RLRsim" version))
  6712. (sha256
  6713. (base32 "1wkkibr250frsbfq70m9jdrylxb492zibf5w03z6zis98pjffssp"))))
  6714. (properties `((upstream-name . "RLRsim")))
  6715. (build-system r-build-system)
  6716. (propagated-inputs (list r-lme4 r-mgcv r-nlme r-rcpp))
  6717. (home-page "https://github.com/fabian-s/RLRsim")
  6718. (synopsis
  6719. "Exact (Restricted) Likelihood Ratio Tests for Mixed and Additive Models")
  6720. (description
  6721. "Rapid, simulation-based exact (restricted) likelihood ratio tests for testing
  6722. the presence of variance components/nonparametric terms for models fit with
  6723. @code{nlme::lme()}, @code{lme4::lmer()}, @code{lmeTest::lmer()},
  6724. @code{gamm4::gamm4()}, @code{mgcv::gamm()} and @code{SemiPar::spm()}.")
  6725. (license (list license:gpl2+ license:gpl3+))))
  6726. (define-public r-binom
  6727. (package
  6728. (name "r-binom")
  6729. (version "1.1-1")
  6730. (source
  6731. (origin
  6732. (method url-fetch)
  6733. (uri (cran-uri "binom" version))
  6734. (sha256
  6735. (base32 "0mjj92dqf5q69jxzqya4izb1mly3mkydbnmlm4wb3zqqg82a324c"))))
  6736. (properties `((upstream-name . "binom")))
  6737. (build-system r-build-system)
  6738. (home-page "https://cran.r-project.org/package=binom")
  6739. (synopsis "Binomial Confidence Intervals For Several Parameterizations")
  6740. (description
  6741. "Constructs confidence intervals on the probability of success in a binomial
  6742. experiment via several parameterizations")
  6743. (license (list license:gpl2+ license:gpl3+))))
  6744. (define-public r-simr
  6745. (package
  6746. (name "r-simr")
  6747. (version "1.0.6")
  6748. (source
  6749. (origin
  6750. (method url-fetch)
  6751. (uri (cran-uri "simr" version))
  6752. (sha256
  6753. (base32 "1q8ip54c5pc7pjf8127jpk56nr3f8rmwqdcrr84faj4lfbr27wqb"))))
  6754. (properties `((upstream-name . "simr")))
  6755. (build-system r-build-system)
  6756. (propagated-inputs
  6757. (list r-binom
  6758. r-car
  6759. r-iterators
  6760. r-lme4
  6761. r-lmertest
  6762. r-pbkrtest
  6763. r-plotrix
  6764. r-plyr
  6765. r-rlrsim
  6766. r-stringr))
  6767. (native-inputs (list r-knitr))
  6768. (home-page "https://github.com/pitakakariki/simr")
  6769. (synopsis
  6770. "Power analysis for generalized linear mixed models by simulation")
  6771. (description
  6772. "This package lets you calculate power for generalized linear mixed
  6773. models, using simulation. It was designed to work with models fit using the
  6774. @code{lme4} package. The package is described in
  6775. @url{doi:10.1111/2041-210X.12504, Green and MacLeod (2016)}.")
  6776. (license license:gpl2+)))
  6777. (define-public r-mixedpower
  6778. (package
  6779. (name "r-mixedpower")
  6780. (version "2.0")
  6781. (source
  6782. (origin
  6783. ;; Not available on CRAN.
  6784. (method git-fetch)
  6785. (uri (git-reference
  6786. (url "https://github.com/DejanDraschkow/mixedpower")
  6787. (commit (string-append "v" version))))
  6788. (file-name (git-file-name name version))
  6789. (sha256
  6790. (base32 "1dy1i8lijbq59xl7482j17a0r4rsdy61smzddk8jsr8nygp2gqy8"))))
  6791. (properties `((upstream-name . "mixedpower")))
  6792. (build-system r-build-system)
  6793. (propagated-inputs
  6794. (list r-doparallel r-foreach r-ggplot2 r-lme4 r-reshape2))
  6795. (home-page "https://github.com/DejanDraschkow/mixedpower")
  6796. (synopsis
  6797. "Pilotdata based simulations for estimating power in linear mixed models")
  6798. (description
  6799. "Implementation of a simulation based aproach to power analysis. Mixedpower uses
  6800. lotdata and a linear mixed model fitted with lme4 to simulate new data sets.
  6801. wer is computed seperate for every effect in the model output as the relation
  6802. significant simulations to all simulations. More conservative simulations as
  6803. protection against a bias in the pilotdata are available aswell as methods for
  6804. otting the results.")
  6805. (license license:gpl3)))