incomplete final line found by readTableHeader in R
This may not be optimal, but it works. stringi
's reliance on the ICU libraries makes it a great Swiss Army knife for overcoming encoding issues. When I saw that vim
could read the file appropriately, I decided to give it a go with stringi
:
library(stringi)
library(docxtractr)
stri_read_lines("23.txt") %>%
stri_split_fixed("\t", simplify = TRUE) %>%
as.data.frame(stringsAsFactors=FALSE) %>%
docxtractr::assign_colnames(1)
## old new
## 1 MAKFA МАКФА
## 2 makar макароны
## 3 макар. макароны
Cannot deploy ShinyApp: incomplete final line found by readTableHeader on 'raw' (Using default: en_US)
It took me quite some time to debug my application fluidrow by fluidrow but I eventually found out what was causing all the trouble !
I had been using both dplyr::filter(variable== input$variable)
and filter((variable == input$variable)
in my script until I realized their conflict was behind the malfunction of my shiny app.
https://github.com/STAT545-UBC/Discussion/issues/331#issuecomment-249048018
Related Topics
How to Format a Number as Percentage in R
Summarizing by Subgroup Percentage in R
Change Variable Name in For Loop Using R
How to Remove Outliers from a Dataset
How to Display Only Integer Values on an Axis Using Ggplot2
Count Nas Per Row in Dataframe
How to Move Cells With a Value Row-Wise to the Left in a Dataframe
How to Center Stacked Percent Barchart Labels
Incomplete Final Line' Warning When Trying to Read a .Csv File into R
Unique Rows, Considering Two Columns, in R, Without Order
Create a Variable Name With "Paste" in R
How to Get Week Numbers from Dates
Aggregate Multiple Columns At Once