title: Saving a model, which utilizes external pointers to C++ in R
body: <p>In this case, save or saveRD commands do not work. And it saves a model with null pointers which no longer work. For instance, if we run the following code how can we save the model such that I can regenerate it in new Rstadio? If you use the save or saveRD, you will be faced with null in external pointers when you load the saved model.</p>
  
  <pre><code>library(fastrtext)
  data("train_sentences")
  data("test_sentences")
  texts &lt;- tolower(train_sentences[,"text"])
  tmp_file_txt &lt;- tempfile()
  tmp_file_model &lt;- tempfile()
  writeLines(text = texts, con = tmp_file_txt)
  execute(commands = c("skipgram", "-input", tmp_file_txt, "-output", tmp_file_model, "-verbose", 1))
  model &lt;- load_model(tmp_file_model)
  </code></pre>