;;; ess-settings.el --- ess settings  -*- lexical-binding: t -*-

;;; Commentary:
;; R (ESS)
;; https://melpa.org/#/ess
;; https://github.com/emacs-ess/ESS
;; https://ess.r-project.org/
;; https://ess.r-project.org/Manual/ess.html
;; https://www.emacswiki.org/emacs/EmacsSpeaksStatistics
 
;; Requirements:
;; ess
;; ess-R-data-view
;;   ctable popup

;; TODO:
;; install lintr for syntax checking

;;; Code:
(use-package ess-site  ;; all ESS features
  :commands ess-r-mode)  ;; only R related features

(use-package ess-R-data-view
  :after (ess-r-mode))

(use-package company-statistics
  :after (ess-r-mode company)
  :config
  (setq company-statistics-file (concat user-cache-directory
                                        "company-statistics-cache.el"))
  ;;(add-hook 'company-mode-hook 'company-statistics-mode)
  )

(provide 'ess-settings)
;;; ess-settings.el ends here
