Permalink
Browse files

correctly invoke matchAvailableTopics for R 3.0

  • Loading branch information...
1 parent 7a65519 commit b98df68438556c2e11047e282d8dbd1bb53600f6 @jjallaire jjallaire committed Mar 9, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/cpp/session/modules/SessionHelp.R
View
5 src/cpp/session/modules/SessionHelp.R
@@ -83,7 +83,10 @@ options(help_type = "html")
.rs.addJsonRpcHandler("suggest_topics", function(prefix)
{
- sort(utils:::matchAvailableTopics(prefix))
+ if (getRversion() >= "3.0.0")
+ sort(utils:::matchAvailableTopics("", prefix))
+ else
+ sort(utils:::matchAvailableTopics(prefix))
});
.rs.addJsonRpcHandler("get_help", function(topic, package, options)

0 comments on commit b98df68

Please sign in to comment.