Save plot without showing it at all

Is it possible to save a plot without displaying it at all ? I made a little ggplot hack to be able to copy graphs to powerpoint easily, it copies the plot to the clipboard, but one can see the device window open and close fast, it's a bit awkward, ...
more »

2017-11-10 12:11 (2) Answers

Get the path of current script

I would like to set the working directory to the path of current script programmatically but first I need to get the path of current script. So I would like to be able to do: current_path = ...retrieve the path of current script ... setwd(current_...
more »

2017-10-31 21:10 (2) Answers

What are "large vectors" in RStudio?

Using RStudio: a <- rep(1, 1e4) b <- rep(1, 1e5) In the environment pane, a and b are displayed differently: What's the meaning of Large numeric? I used to think that it meant that b was handled in a special way by R, but using str I can'...
more »

2017-10-31 13:10 (1) Answers

How to access/copy the View function?

I'm currently working on an add in for RStudio which opens an "enchanced" view of a data frame in Shiny, allows you to filter and select columns, then passes that code to the command line wrapped in View(). One feature which was suggested to me was ...
more »

2017-10-26 13:10 (2) Answers

Disable TortoiseSVN project Monitor

I installed TortoiseSVN on my work laptop (win 7 Ent.) and tried to integrate Tortoise with R-Studio. But because of some known issues (see here), I did not take it further and disabled subversioning on R-Studio. Since then, when I start R-Studio cli...
more »

2017-10-18 19:10 (0) Answers

Error with H2O in R - can't connect to local host

I can't get the h2o to work in my RStudio. It shows the following error. Have no clue what it means. Previously it gave me an error because I didn't have Java 64 bit version. I downloaded the 64bit - restarted my pc - and started the process again an...
more »

2017-09-24 18:09 (2) Answers

How to get sha of current git commit from R

Is there a way to get SHA of current GIT commit from R? I need to access it via a function call (not as a hard string). I have adapted GIT as version control system for analysis, and want to print the SHA on footnote of my intermediate reports (my ...
more »

2017-09-23 09:09 (2) Answers

how to comment out R code blocks in R markdown?

I'm editing an R markdown file (.Rmd) that has a lot of R code blocks to move groups of those code blocks into "child" documents to simplify rearranging sections (if nothing else). As I convert sections to child documents, I would like to test the ne...
more »

2017-09-05 17:09 (2) Answers

Command Lines error in Rstudio console

how to assign a very long string to a variable in r? Following works fine testVar <- "test;test;" But the following gives a weird + in the RStudio console. testVar <- "test;test;test;test;test;test;test;test;test;test;test;test;test;t...
more »

2017-08-10 16:08 (1) Answers

More meaningfull window title for Rstudio

I'm using R studio (Version 1.0.143) under Ubuntu (16.04) and the window title displays only a very uninformative "RStudio". I would like to have at least the name of the current tab or ideally the full path to the file corresponding to this tab. It...
more »

2017-07-15 16:07 (1) Answers

Problems with installation R packages

Im windows user. A few weeks ago I installed R and Rstudio and installed many packages. Today there was a spell that new packages are not installed. Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: can...
more »

2017-07-15 10:07 (2) Answers

Interactive plots on local .html via .rmd or Shiny

I'm trying to build a .html file via RStudio in to have following function(simplified). plot1:a simple time series plot of $y_t$, where user can manually pull/drag each dot to change it's values a each time point. plot2:a time series dependent on $...
more »

2017-07-06 19:07 (1) Answers

How does RStudio save and export files?

I'm new to RStudio. So far I managed to import my data from a csv file and write some code in order to manipulate it abit. Now, I want to do the following things: Save my whole project so that later I can pick it as is. Export the dataframe (marke...
more »

2017-07-01 18:07 (1) Answers

Non-numeric argument to binary operator in R

I'm trying to plot some numbers in a graph, in the line x and y. The problem is I'm formatting the numbers as 3M for 3.000.000, 10k for 10.000, then I'm trying to put these numbers in the graph using the axis function, the problem is that I'm getting...
more »

2017-06-10 02:06 (1) Answers

How to delete duplicate rows by group?

How to delete duplicate rows by group with the option to choose how many duplicate rows to keep? eg: Please check Example Picture, for every continuous 1 in V1, delete the rows where the Volume is duplicated, for df[2:5,] row 5 will be deleted, for...
more »

2017-05-29 05:05 (1) Answers

Build a file diagram for an R code

I need to work on a relatively large R code written by someone else. The code has no documentation, and it's split into countless files, each one of which can contain one or more functions. The original author didn't use a Makefile, so there's no doc...
more »

2017-05-26 11:05 (1) Answers

rattle installation error: Invalid root element:

I am new to data mining and R. Please provide how to proceed with following query. I want to use the R-package Rattle for my data analysis on my MS Win 10- X64 system. I am following the instructions given in http://rattle.togaware.com/rattle-insta...
more »

2017-05-15 09:05 (1) Answers

Splitting 1 column into 1 to 3 columns in R

I have been wrestling with some code for a personal project and have been hitting some roadblocks. I have some restaurant data and there is a column for the table with information separated by "/". For example : 4/1 means table 4, and first che...
more »

2017-04-15 07:04 (1) Answers