pablotis / drat

Sample drat repository for easy forking and bootstrapping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drat dev package hosting

drat (CRAN, GitHub, docs) makes it easy to host your own CRAN-like repositories for packages (or data).

Paso a paso:

Paso 1:

Pegar el archivo .tar del paquete en cuestión dentro del repositorio de drat

Paso 2:

Desde drat, ejecutar la siguiente sentencia:

library(drat)
options(dratBranch="docs")   # to default to using docs/ as we set up
insertPackage(file="dstools_0.1.0.tar.gz", 
              repodir="../drat/")

Luego se debería poder instalar un paquete con el siguiente comando:

install.packages("makeup", repos="https://pablotis.github.io/drat", type="source")
#> Installing package into 'C:/Users/pablo/AppData/Local/R/win-library/4.2'
#> (as 'lib' is unspecified)

Fuente: https://eddelbuettel.github.io/drat/vignettes/dratstepbystep/

About

Sample drat repository for easy forking and bootstrapping