gonzamaxilopez / miPaqueteR

MIT License
0 stars 0 forks source link

ERROR: dependency ‘mass’ is not available #1

Open lsaravia opened 6 years ago

lsaravia commented 6 years ago

No anda al tratar de instalarlo, porque tiene un problema de dependencia, probá vos instalarlo desde github.


install_github("gonzamaxilopez/miPaqueteR")

Downloading GitHub repo gonzamaxilopez/miPaqueteR@master
from URL https://api.github.com/repos/gonzamaxilopez/miPaqueteR/zipball/master
Installing miPaqueteR
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  '/tmp/RtmppD4RTj/devtools580656fe9899/gonzamaxilopez-miPaqueteR-3e42d18'  \
  --library='/home/leonardo/R/x86_64-pc-linux-gnu-library/3.5' --install-tests 

ERROR: dependency ‘mass’ is not available for package ‘miPaqueteR’
* removing ‘/home/leonardo/R/x86_64-pc-linux-gnu-library/3.5/miPaqueteR’
Installation failed: Command failed (1)
gonzamaxilopez commented 5 years ago

hola profe si es verdad :(

la intente instalar en otro maquina y me tira el mismo error

%=============================================

require(devtools) Loading required package: devtools install_github("gonzamaxilopez/miPaqueteR") Downloading GitHub repo gonzamaxilopez/miPaqueteR@master from URL https://api.github.com/repos/gonzamaxilopez/miPaqueteR/zipball/master Installing miPaqueteR '/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ '/tmp/Rtmp8XwleG/devtools73a158821981/gonzamaxilopez-miPaqueteR-3e42d18' \ --library='/home/gonzalo/R/x86_64-pc-linux-gnu-library/3.4' --install-tests

ERROR: dependency ‘mass’ is not available for package ‘miPaqueteR’

como lo arreglo profe ?

gonzamaxilopez commented 5 years ago

listo profe ya se puede instalar con

%===================

require(devtools) install_github("gonzamaxilopez/miPaqueteR") %===================

pare ahora tengo otra duda la función "freq" anda perfecto (porque no requiere ningún paquete extra)

%========== View(data1) Fx<-freq(data1$Ascaris.worm.burden)

CORRE BIEN

%==========

sin embargo la función "fitcount" no corre sin agregar la sentencia "require(MASS)" es decir

%==================== View(data1)

Par<-fitcount(data1$Ascaris.worm.burden) Error in fitdistr(X, "negative binomial") : no se pudo encontrar la función "fitdistr"

NO CORRE

%=====================

pero

%============

require(MASS) Loading required package: MASS View(data1) Par<-fitcount(data1$Ascaris.worm.burden)

CORRE BIEN

%==============

ahora va mi pregunta

existe alguna manera de que mi paquete cargue el paquete MASS para que el usuario no tenga que poner "require(MASS)"?

lsaravia commented 5 years ago

Hola, eso esta explicado en:

file:///home/leonardo/Dropbox/Cursos/IntroRProgramming/Curso4.2.html#(11)

http://r-pkgs.had.co.nz/namespace.html

Basicamente

To use external functions the best practice is to explicitly refer it using the syntax package::function()

gonzamaxilopez commented 5 years ago

gracias profe

creo que ya nada bien

me dice si tiene algún problema

lsaravia commented 5 years ago

Ok, listo, aprobado.