Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider e470e69b rédigé par simon.chevolleau's avatar simon.chevolleau
Parcourir les fichiers

fix: check if dat is matrix or dataframe

parent 670efccf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -42,8 +42,8 @@ writeTable <- function(dat, fileName = NULL, sepUser = '\t', rownames=TRUE, nThr
if (is.null(fileName)){
stop(paste0('ERROR: ', fileName, ', this file name is NULL'))
}
if (file.exists(fileName)){
stop(paste0('ERROR: ', fileName, ', this file already exists'))
if (is.data.frame(dat) || is.matrix(dat)){
stop(paste0('ERROR: your data is not a dataframe or a matrix'))
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter