Rbuildignore and Excluding Directories

I am interested in excluding two directories inst\docs and inst\examples while building and installing the package. I know that an easy way out is just to move docs and examples to the root...

Error in gzfile(file, "wb"): cannot open the connection or compressed file

I'm trying to run two things: first, I'm creating a PDF with 4x5, ending with dev.off(), and then trying to create a new graph. However, after starting the second plot, I get: Error in...

RMarkdown error in YAML

I watched a great webinar by RStudio the other day about RMarkdown. After the webinar they posted the code used in the demonstrations online and I wanted to check out one example. I took their...

The correct use of devtools and/or RStudio with respect to .Rbuildignore

I'd like to exclude the following ressources when building an R package via .Rbuildignore: ^.*\.Rproj$ ^\.Rproj\.user$ inst/examples inst/prof man-roxygen tests But I'm confused as sometimes it...

Rstudio debug - missing step into button

I'm an R newbie, working with Rstudio. when I create a new project on my machine, including multiple files, and try to debug via the consul, I do not see the "step into" and "execute reminder"...

R - Error writing csv to file - "Error in file(file, ifelse(append, "a","w"... Windows 7. Works until a certain point

I've been using R (Rstudio and R version 3.2.4) to automate my analysis. Worked all day on one location dataset. Read and written with no issues to the same drive as this one (just a different...

Error occurred while checking for updates.Unable to establish connection with R session Rstudio

I am unable to load an R project and I am getting an error: Error occurred while checking for updates. Unable to establish a connection with R session with R studio. I am using large data sets...

R dplyr filter rows on numeric values for given column

Working on a Spark platform, using R and RStudio Server, I want to filter my tbl where a given column (string) meets the condition of being numeric. Hence, the column contains both numeric/integer...

Shiny open multiple browser tabs

In my Shiny app I want to open several URL's with a short delay between opening. Here is some example code that works just fine when I run the app in my RStudio. library(shiny) URLs <-...

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...

R/ RStudio - system path issue

I think I did some damage to my system path and now I am unable to knit in RStudio. I have the most current version of R and RStudio. Here is what i'm working...

Perform multiple paired t-tests based on groups/categories

I am stuck at performing t.tests for multiple categories in Rstudio. I want to have the results of the t.test of each product type, comparing the online and offline prices. I have over 800 product...

Get strings recognized as column name

Forgive my newbie question. I only got started using R since a month ago. This is similar to the question here...

How to get dialog/message box working in executable R file

I have an executable R file. All of the code works as expected, except for the function winDialog(), which works through RStudio, but not when the file is run through double clicking. The code in...

SparklyR removing a tbl from Spark Context

Similar to: https://stackoverflow.com/questions/41025094/sparklyr-removing-a-table-from-spark-context, but different because: The above question asks how to remove a "table" from spark, here...

White margins ggplot

Using jupyter notebook (doesn't happen in RStudio), when plotting a graph with ggplot and reducing the ratio of the plot: ggplot(data)+ theme(aspect.ratio=.5) or ggplot(data)+ ...

RStudio crashing with RcppGSL function

I am working on speeding up one of my R programs, that solves a vector of score equations, with Rcpp. Since intermediate steps in computing these score equations require interpolation and...

geom_sf size argument doesn't work when size < 1

Question: I'm trying to create a map of U.S. states/counties with the sf package and geom_sf() from ggplot2, but I can't get the size argument for polygon border line width in geom_sf() to...

Cannot get IRkernel::installspec() to work, jupyter-client not visible

I am still in progress to get Jupyter-Notebook and R working together on Windows 10 machine. After solving the problem with install_github() I am now facing just another issue. I am still...

Rmarkdown - Duplicated TOC (Table of content)

Hello StackOverflow community, When creating an Rmarkdown document all goes fine and table of content appears as intended. TOC Correct: When I open the HTML in my browser from Rstudio to my...

how to set lib-paths in R to have a single directory which is "C:\Users\Username\Documents\..."

Win 7 64 bit machine R version 3.5.3 (2019-03-11) Question: How do I set my library paths to have only one directory, namely: "C:/Users/Username/Documents/R/win-library/3.5" ? I added...

How do I had an alias for magrittr pipe from R in vscode

I would like an alias for typing %>% in vscode (the pipe command in R) . In Rstudio this is mapped to ctrl + shift + M, but if this is not available in vscode for any reason I am happy to map to...

Installation of package ‘Rmpfr’ had non-zero exit status in R

I am unable to install the Rmpfr package in R. I am trying to use the CVXR package in order to solve OR problems. Since Rmpfr package is needed as a pre-requisite, I tried installing the same...

Specify reticulate python path in RETICULATE_PYTHON environment variable

Whenever I use reticulate in RStudio, the default REPL is using python2.7, but I want to use python3 per default. I have added the python path to python3 to my .bashrc in the environment variable...

Error Deploying Apps to shinyapps.io Server

When I just wrote an app which runs perfectly locally, but when I tried to deploy it online, I keep getting this error: error message: Preparing to deploy application...DONE Uploading bundle...

Error with Plumber API deployment in Digital Ocean via R | Authentication with ssh server failed

I am facing some issues with Plumber API deployment in Digital Ocean via R. Given below is the R code I executed in my desktop (in RStudio) after making the following configurations.. Created SSH...

Crontab R script failing due to import function (Rstudio is closed)

I am trying to run a Rscript using crontab with Rstudio closed and i am getting the following error in the log when the script is ran: Warning message: package ‘dplyr’ was built under R...

Get non html content from rvest_session object

I am trying to get a text file from a URL. From the browser, its fairly simple. I just have to "save as" the from the URL and I get the file I want. At first, i had some trouble logging in using...

How to use indentation with `rstudioapi::insertText`

I have a string that I want to paste with indentation into RStudio using the {rstudioapi}. Here is a simple test string: test_str <- "for (i in seq_along(x)) {\nout[[i]] <-...

Tensorflow setup in R | Error: Failed to load the native TensorFlow runtime

For the last 5 days, I am trying to make Keras/Tensorflow packages work in R. I am using RStudio for installation and have used conda, miniconda, virtualenv but it crashes each time in the end....