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

dev.slackr not working #3

Closed
eusebe opened this issue Sep 8, 2014 · 6 comments
Closed

dev.slackr not working #3

eusebe opened this issue Sep 8, 2014 · 6 comments
Assignees

Comments

@eusebe
Copy link

eusebe commented Sep 8, 2014

Hi,

Thank you for this wonderfull package!

I think I figure out how to configure the package: slackr(), slackrChannels(), and slackrUsers() are working perfectly.

But graphic related functions give:

dev.slackr("#general")
Erreur dans [.data.table(groups, , 1:2, with = FALSE) : j out of bounds
ggslackr(qplot(mpg, wt, data=mtcars))
Erreur dans [.data.table(groups, , 1:2, with = FALSE) : j out of bounds

Did I miss something?

Again, thank you very much.

@hrbrmstr hrbrmstr self-assigned this Sep 8, 2014
@hrbrmstr
Copy link
Collaborator

hrbrmstr commented Sep 8, 2014

I'll definitely take a poke. Do you have some example graphics code that posted to a device right before that call I could use to re-create? (it works for all our tests so far)

@hrbrmstr
Copy link
Collaborator

hrbrmstr commented Sep 8, 2014

Do you have any private groups? The graphics code ends up having to call the file upload API and that requires translating from "#name", "@name" and "name" to the internal IDs. If you don't have any private groups, that's probably the culprit.

@eusebe
Copy link
Author

eusebe commented Sep 8, 2014

I have created a dummy private group, and you're right: it's working.
(This should probably be documented).

Thanks!

@hrbrmstr
Copy link
Collaborator

hrbrmstr commented Sep 8, 2014

Thx for testing and filing the issue! I just pushed new code up that doesn't require private groups to be setup in order to work (1.2.1).

@hrbrmstr hrbrmstr closed this as completed Sep 8, 2014
@eusebe
Copy link
Author

eusebe commented Sep 8, 2014

Woo, that was quick.

@ghost
Copy link

ghost commented Sep 14, 2014

I get the following errors when running the ggslackr / dev.slackr examples from the manual:

ggslackr(qplot(mpg, wt, data=mtcars)) Error in rbindlist(l, use.names, fill) : Item 2 has 2 columns, inconsistent with item 1 which has 3 columns. If instead you need to fill missing columns, use set argument 'fill' to TRUE.

I get the same error message with any other ggplot code I run. i.e.

ggslackr(ggplot(iris, aes(x = Species, y = Sepal.Width, fill = Species)) + geom_bar(stat="identity"))

and yes, I created a private group in Slack. The plots in R are created as expected without errors.
I can send messages using slackr just fine.
I am using R 3.1.1 and installed the latest slackr-package from github.

xinye1 added a commit to xinye1/slackr that referenced this issue Dec 13, 2020
Fixed failing test in README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants