So base::args gets passed instead, which fails when canvas_query() tries to
args = sc(args)
The fix is to simply drop the unneeded args argument.
However, the current canvas_query requires it:
function(urlx, args, type = "GET")
So if delete_wpage were to just call canvas_query(url, "DELETE"), "DELETE" would become the args argument, which is also a bug.
Things seem to work if I set args = NULL as default in canvas_query.
(It would be nice to have unit tests for this, but it's tricky because that would require a test Canvas to be available.)
delete_wpage
simply does not work.The problem is that delete_wpage() has no argument called
args
, yet tries to pass one tocanvas_query
:So
base::args
gets passed instead, which fails when canvas_query() tries toThe fix is to simply drop the unneeded
args
argument. However, the current canvas_query requires it:So if
delete_wpage
were to just callcanvas_query(url, "DELETE")
, "DELETE" would become theargs
argument, which is also a bug. Things seem to work if I setargs = NULL
as default incanvas_query
.(It would be nice to have unit tests for this, but it's tricky because that would require a test Canvas to be available.)