Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using distFun in clusterMany shouldn't use global.env() #229

Open
epurdom opened this issue Oct 6, 2017 · 0 comments
Open

Using distFun in clusterMany shouldn't use global.env() #229

epurdom opened this issue Oct 6, 2017 · 0 comments
Labels

Comments

@epurdom
Copy link
Owner

epurdom commented Oct 6, 2017

To use distFun with clusterMany, user gives character names of functions and they are looked up in global.env by the internal function .makeDiss. This is problematic and not good use of environments. For example, calling

rmarkdown::render("clusterExperimentTutorial.Rmd",envir=new.env())

crashes because it's run in a new environment so the defined distance functions in the tutorial are not in global.env().

@epurdom epurdom added the bug label Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant