cjvanlissa / tidySEM

55 stars 7 forks source link

Small namespace issue in graph_sem.default #35

Open ddebeer opened 3 years ago

ddebeer commented 3 years ago

Hi!

When the tidySEM package is not loaded, tidySEM::graph_sem returns an error: 'could not find function "prepare_graph"'. replacing line 186 of R/plot-plot_sem.R

cl[[1L]] <- quote(prepare_graph)

with

cl[[1L]] <- quote(tidySEM::prepare_graph)

should resolve the issue.

Thanks!

cjvanlissa commented 3 years ago

Thank you for the suggestion.. I will keep this issue open for a bit. tidySEM::prepare_graph() will result in issues during the CRAN check; str2lang("tidySEM::prepare_graph") will work without complaints but I have to check for any unexpected downstream consequences..