catch warnings and errors in rpy2

0 votes
I'm using rpy and I want to catch warnings and errors, Is that possible?
Nov 8, 2018 in Data Analytics by Ali
• 10,450 points
28 views

1 answer to this question.

0 votes

To get the warnings as an rpy2 object, you can do:

from rpy2.robjects.packages import importr
base = importr('base')
# do things that generate R warnings
base.warnings()
answered Nov 8, 2018 by Maverick
• 10,040 points

Related Questions In Data Analytics

0 votes
1 answer

How do I check and catch errors in R

With tryCatch you can handle errors as you want: an.error.occured ...READ MORE

answered Nov 6, 2018 in Data Analytics by Kalgi
• 37,320 points
16 views
0 votes
2 answers

"Train" and "Test" sets in Data Science

Normally to perform supervised learning you need ...READ MORE

answered Aug 2, 2018 in Data Analytics by ANMOL
• 3,620 points
33 views
0 votes
1 answer

In a dpylr pipline how to use sample and seq?

For avoiding rowwise(), I prefer to use ...READ MORE

answered Apr 6, 2018 in Data Analytics by DeepCoder786
• 1,700 points
60 views
0 votes
1 answer
0 votes
1 answer

How to sort a data frame by columns in R?

You can just use the order function ...READ MORE

answered Apr 10, 2018 in Data Analytics by darklord
• 6,140 points
73 views
0 votes
1 answer

How can I perform word stemming in R

The tm package in R provides the stemDocument() function to stem the ...READ MORE

answered Aug 20, 2018 in Data Analytics by ANMOL
• 3,620 points
40 views
0 votes
1 answer

How to know the type of an object?

To find the type of an object ...READ MORE

answered Sep 19, 2018 in Data Analytics by ANMOL
• 3,620 points
24 views
0 votes
1 answer

Remove NA values from the output in R programming

Edit your code: columnmean <- function(x, removeNA = ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 37,320 points
30 views
0 votes
1 answer

Difference between factor and as.factor in R programming

Hey @Ali, as.factor is a wrapper for ...READ MORE

answered Oct 29, 2018 in Data Analytics by Maverick
• 10,040 points
32 views
0 votes
1 answer

R errors in eclipse

remove import android.R Then clean and rebuild project. R ...READ MORE

answered Nov 8, 2018 in Data Analytics by Maverick
• 10,040 points
26 views