title: R C5.0 Decision Trees - "c50 code called exit with value 1" error
body: <p>I have a .csv dataset I'm trying to run a C5.0 decision tree on. The dataset is a fake-news dataset modified to exclude any special characters. This is my source code:</p>
  <pre><code>data &lt;- read.csv(&quot;C:/Users/Admin/downloads/fnn_test.csv&quot;, stringsAsFactors = TRUE)
  data &lt;-na.omit(data)
  data &lt;- data[-1]
  data &lt;- data[-1]
  str(data)
  
  #assigning the diagnosis as factors
  data$LBL &lt;- factor(data$LBL, levels = c('fake', 'real'),
                                 labels = c(&quot;Fake&quot;, &quot;Real&quot;))
  
  #dividing dataset
  data_train &lt;- data[1:50, 1:5]
  data_test &lt;- data[51:70, 1:5]
  
  str(data_train)
  
  #defining seed and library
  set.seed(123)
  library(C50)
  
  #
  predModel &lt;- C5.0(LBL ~ ., data_train)
  summary(predModel)
  </code></pre>
  <p>The error I get when I run the decision tree is &quot;c50 code called exit with value 1&quot;, and in the summary it says &quot;line 17 of `undefined.names': overlength name: check data file formats&quot;. I replaced all special characters in the dataset as it gave me different errors and this is what I'm left with.</p>
  <p>This is the download for the dataset: <a href="https://drive.google.com/file/d/112X0cnV7lwkUh8JawPD50_iJ58FJa-OH/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/112X0cnV7lwkUh8JawPD50_iJ58FJa-OH/view?usp=sharing</a></p>
  <p><a href="https://i.stack.imgur.com/145vk.png" rel="nofollow noreferrer">This is how the dataset looks like</a></p>