Skip to content

require-r not working inside a function #66

@awb99

Description

@awb99
(defn init-r []
  (println "configuring clojisr ..") 
  (require-r '[base :as base :refer [$ <- $<-]]
                  '[utils :as u]
                  '[stats :as stats]
                  '[graphics :as g]
                  '[datasets :refer :all])
    (base/options :width 120 :digits 7)
    (base/set-seed 11228899)
    (pdf-off))

(init-r)

When I have all the forms of this function direct in the namespace, then all works fine.
But if I wrap the initialization in a function to be more modular, then the r libraries
in require-r can no longer be found.

I am not sure if clj require works the same way or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions