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

R not responding request to interrupt stop process

Every now and then I have to run a function that takes a lot of time and I need to interrupt the processing before it's complete. To do so, I click on the red sign of "stop" at the top of the console in Rstudio, which quite often returns this message...
more »

2017-03-31 22:03 (1) Answers

Define what makes a code section in rstudio

Rstudio changed how a code section is defined. In version 0.99.902 code sections had to have some text behind the hash symbol. But now in version 1.0.136 if there are 5 hashes in a row it will define a new section. Is there anyway to make it go back...
more »

2017-03-30 18:03 (2) Answers

roxygen2 not creating .Rd documentation

I am unable to generate .Rd documentation files for my package using RStudio and Roxygen2. First, let me mention that I have gone through similar problems posted here and have already done the following: Roxygen2 blocks initiated at the beginning o...
more »

2017-03-04 08:03 (0) Answers

r studio cmd+s sourcing rather than saving

Run into a bizarre problem where R studio (latest version - Version 1.0.136 on mac) has suddenly started sourcing the current file rather than saving it when cmd+s is pressed. I have gone through the keyboard shortcuts and removed all those pertaini...
more »

2017-03-01 14:03 (1) Answers

Interesting array of letters

was practicing the basic operation and finding something interesting. test <- array(0,dim = c(1,26)) colnames(test) <- letters I was expecting an array with letters as colname, yet it turns out to be like this the name of 24th column shal...
more »

2017-01-29 03:01 (0) Answers

Using RStudio to Make Pull Requests in Git

My enterprise has a Git repository. To make changes, I have to make changes in my forked repository and then make a pull request. I primarily use RStudio, so I have enabled its integration with Git. I can make changes to my forked repository and t...
more »

2017-01-17 03:01 (1) Answers