showNotification(i18n$t("Failed to read the sheet list from the xlsx file. Please check if the file is corrupted or properly formatted "),type="error")
need(length(vars)<101,i18n$t("Interactive re-ordering is only supported up to 100 variables. See ?dplyr::select for information on how to re-order variables in R"))
need(length(vars)<101,"Interactive re-ordering is only supported up to 100 variables. See ?dplyr::select for information on how to re-order variables in R")
"\n",i18n$t("The transformation type you selected generated an error."),"\n\n",
i18n$t("The error message was:"),"\n\n",
attr(result,"condition")$message,"\n\n",
i18n$t("Please change the selection of variables or the transformation type and try again.")
)
paste0("\nThe transformation type you selected generated an error.\n\nThe error message was:\n\n",attr(result,"condition")$message,"\n\nPlease change the selection of variables or the transformation type and try again.")
vars<-c(byvar,vars)## to avoid the 'added group_by variable' message
}
if(inherits(nvar,"try-error")){
paste0(
"\n",i18n$t("The create command was not valid."),"\n",
i18n$t("The command entered was:"),"\n\n",
cmd,"\n\n",
i18n$t("The error message was:"),"\n\n",
attr(nvar,"condition")$message,"\n\n",
i18n$t("Please try again. Examples are shown in the help file")
)
paste0("\nThe create command was not valid. The command entered was:\n\n",cmd,"\n\nThe error message was:\n\n",attr(nvar,"condition")$message,"\n\nPlease try again. Examples are shown in the help file")
}else{
select_at(nvar,.vars=vars)%>%
ungroup()
...
...
@@ -630,9 +591,9 @@ fix_ext <- function(ext) {
gsub("\\s{2,}"," ",.)
if(is.empty(byvar)){
paste0(i18n$t("## create new variable(s)\n"),store_dat," <- mutate(",dataset,", ",cmd,")\n")
paste0("## create new variable(s)\n",store_dat," <- mutate(",dataset,", ",cmd,")\n")
i18n$t("Please try again. Examples are shown in the help file (click the ? icon).")
)
paste0("The recode command was not valid. The error message was:\n",attr(nvar,"condition")$message,"\nPlease try again. Examples are shown in the help file (click the ? icon).")
return(i18n$t("\nSome of the variables names used are not valid. Please use 'Rename' to ensure\nvariable names do not have any spaces or symbols and start with a letter"))
return("\nSome of the variables names used are not valid. Please use 'Rename' to ensure\nvariable names do not have any spaces or symbols and start with a letter")
return(i18n$t("The pasted data was not well formatted. Please make sure the number of rows **\n** in the data in Radiant and in the spreadsheet are the same and try again."))
return("The pasted data was not well formatted. Please make sure the number of rows **\n** in the data in Radiant and in the spreadsheet are the same and try again.")
}elseif(nrow(cpdat)!=nrow(dat)){
return(i18n$t("The pasted data does not have the correct number of rows. Please make sure **\n** the number of rows in the data in Radiant and in the spreadsheet are the **\n** same and try again."))
return("The pasted data does not have the correct number of rows. Please make sure **\n** the number of rows in the data in Radiant and in the spreadsheet are the **\n** same and try again.")
return(i18n$t("\nNo filter, arrange, or slice set. Click the 'Filter' checkbox and enter a\nfilter, arrange, and/or a slice of rows to keep as the main data. The holdout\nwill have have all rows not selected by the filter, arrange, and slice"))
return("\nNo filter, arrange, or slice set. Click the 'Filter' checkbox and enter a\nfilter, arrange, and/or a slice of rows to keep as the main data. The holdout\nwill have have all rows not selected by the filter, arrange, and slice")
return(i18n$t("Interactive re-ordering is only supported up to 100 levels. See\n?radiant.data::refactor for information on how to re-order levels in R"))
return("Interactive re-ordering is only supported up to 100 levels. See\n?radiant.data::refactor for information on how to re-order levels in R")