فهرست منبع

Added as.is=TRUE argument to read.table so that strings are kept as strings and not converted to factors

Dan Davison 17 سال پیش
والد
کامیت
0947747759
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      litorgy/litorgy-R.el

+ 1 - 1
litorgy/litorgy-R.el

@@ -69,7 +69,7 @@ R process in `litorgy-R-buffer'."
         (with-temp-file transition-file
           (insert (orgtbl-to-tsv value '(:sep "\t" :fmt litorgy-R-quote-tsv-field)))
           (insert "\n"))
-        (litorgy-R-input-command (format "%s <- read.table(\"%s\")" name transition-file)))))
+        (litorgy-R-input-command (format "%s <- read.table(\"%s\", as.is=TRUE)" name transition-file)))))
 
 (defun litorgy-R-to-elisp (func-name)
   "Return the result of calling the function named FUNC-NAME in