streamgraph icon indicating copy to clipboard operation
streamgraph copied to clipboard

function missing

Open hoppydata opened this issue 8 years ago • 1 comments

i can find the function sg_add_marker() in the help pages but it seems missing. no errors while installing the latest package version 0.8.1 on R.3.4.2

> g%>%  sg_add_marker(x=2010,"ahoi")
Error in sg_add_marker(., x = 2010, "ahoi") : 
  could not find function "sg_add_marker"
> ls("package:streamgraph")
 [1] "%>%"               "renderStreamgraph" "sg_annotate"       "sg_axis_x"         "sg_axis_y"        
 [6] "sg_colors"         "sg_fill_brewer"    "sg_fill_manual"    "sg_fill_tableau"   "sg_legend"        
[11] "sg_title"          "streamgraph"       "streamgraphOutput" "widgetThumbnail"

keep up the good work. cheers!

hoppydata avatar Nov 29 '17 20:11 hoppydata

Seems like there is the @export line missing in https://github.com/hrbrmstr/streamgraph/blob/master/R/marker.r

Workarounds until this is fixed in this repo:

  1. Copy that code in yours and use it.
  2. Get the package code, fix locally and install from that version

jmcastagnetto avatar May 30 '20 13:05 jmcastagnetto