Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [r]

R is a programming language and software environment for statistical computing and graphics.

0
votes
0answers
8 views

R Markdown “Default” CSS Theme

I believe I am trying to somehow reset an environmental variable or setting related to how Pandoc develops an HTML output file from Markdown through knitr. I am using R (and RStudio) on Windows, all ...
0
votes
0answers
20 views

SSL connection through R and/or R Studio on Windows

I was wondering if anyone has connected to an SSL secure host via R or R studio? I've tried several different options but none have been successful. yaml configuration file sslmode = TRUE/ALLOW/...
0
votes
0answers
11 views

What R version does Bluesky Statistics use? [on hold]

What R version does Bluesky Statistics use? And can it be updated by a user?
0
votes
0answers
21 views

Rcpp package installation error

I was trying to install Rcpp in R through install.packages("Rcpp"), but the following error occurred: * installing *source* package ‘Rcpp’ ... ** package ‘Rcpp’ successfully unpacked and MD5 sums ...
0
votes
2answers
23 views

Cannot install hexbin library R on AWS instance

I am working on a project that uses the package plotly in R. When I tried installing plotly, hexbin (a dependency) would not compile, because it could not find the gfortran .so libraries. I have ...
-2
votes
0answers
14 views

Labelling points in ggtern [closed]

I'm using the ggtern package in r to create ternary plots and would like to annotate the points. However, some of the ggplot2 capabilities don't seem to work for ggtern (e.g. geom_text_repel) and my ...
-1
votes
0answers
54 views

Issues installing R packages [closed]

I'm having issues installing R packages that require compilation, in particular ggplot2. The exit code is 127. I've not been able to fix the issue using solutions that have worked for other people ...
1
vote
1answer
39 views

2019 incorrect week calculation by the standard date format mask

Normally I calculate the week of the year by the standard date format mask %Y%W. Till 2019 it worked quite good but last days I've noticed that the first week of the year 2019 (2018/12/31-2019/01/06) ...
0
votes
0answers
21 views

How can I install devtools with brew?

What can I do to solve this problem and install the devtools successfully? ➜ ~ brew install devtools Updating Homebrew... Error: No available formula with the name "devtools" ==> Searching for ...
0
votes
0answers
18 views

install R package - readr, error: object 'p' not found

I am studying R programming through the lessons in Swirl package. In one of the Swirl lessons, it requires to install readr package. I got this error message when I tried to install it. What can I do ...
0
votes
1answer
21 views

R g++ error installing survey package

i get a non-zero exit status by installing the survey-package in R version 3.5.2 on ubuntu 18.04. the problem seems to be related to g++ and the package minqa. in the output of the installation ...
0
votes
0answers
43 views

Loading fail when install “RBioFormats” package in Windows 10

I am trying to install "RBioFormats" package on my Win 10 computer. The required "rJava" package is installed and can be loaded properly. JAVA JDK version is "1.8". All program are running under x64 ...
0
votes
0answers
30 views

Task scheduler rebuilt R package

I working on the R library on my personal computer, the library is stored at shared network drive. This library is used by server which each day runs R scripts. Currently for each change in my ...
0
votes
0answers
25 views

Cannot use shortcuts made by Autohotkey in RStudio

I made some shortcuts using Autohotkey like this. CapsLock & j::Left CapsLock & k::Down CapsLock & l::Right CapsLock & i::Up It works on other program such as chrome or words. But ...
0
votes
0answers
11 views

Is it possible to use R on an iPad? [migrated]

I am new to coding and I am attempting to learn about R using online resources, and I am wondering how to use R from an iPad when I’m away from a desktop / laptop (or if this is feasible)? I also don’...
-1
votes
0answers
20 views

R ggplot2 package installing error

I have experiecing error in installing ggplot2 which is preparing package for lazy loading: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace '...
0
votes
0answers
75 views

Can R run on Neurodebian?

The install page for R has instructions for Debain: https://cran.r-project.org/ I'm running Neurodebian (the actual OS is Debian GNU/Linux 8, not really sure what makes it "neuro") When I try to ...
2
votes
1answer
45 views

prevent cleanmgr.exe from deleting tmp files

I'm running an R shiny app locally on my Windows machine that auto-runs every day using a batch file. I recently ran into an issue lately where the R tmp directory /tmp/RtmpXXXXX is removed and the ...
0
votes
0answers
72 views

How/When is the HOME environment variable set within R

In troubleshooting some kind of R configuration issue that was causing a pandoc conversion failure when trying to Knit a .Rmd on a colleague's Windows 10 machine, I noticed that the first path in ....
0
votes
0answers
25 views

Plot data on a 10 minute interval

I would like to plot - 10 minutes intervals - activities from time use diaries. The rows are number of observations (16533) and the columns are activities undertaken during a day (144 activities x 10 ...
0
votes
0answers
12 views

R library gets deleted when Rstudio restarts (ubuntu)

I use the Rstudio pre-installed on Azure, ubuntu. Every time when the server crashes or R connection lost, everything in .libPaths()[1] gets deleted; However, other users on this VM don't experience ...
0
votes
1answer
19 views

How to modify data to make box plot?

My data is formatted like: 0:01:11 0:01:58 0:01:12 0:01:33 0:01:14 0:01:07 0:07:00 0:04:14 0:02:07 0:03:06 0:01:16 0:01:00 0:02:39 0:03:00 0:03:43 0:02:26 0:02:57 0:08:43 0:03:10 0:...
1
vote
0answers
45 views

Security concerns with users created for R scripts in SQL Server

As discussed in this question and this MSDN forum post, installing R with a Microsoft SQL Server 2017 installation (possibly other versions) creates 20 users in the SQLRUserGroup. As explained in the ...
0
votes
0answers
31 views

Adding two timeseries with different time scales

I have to SUM two different time series. These two time series have different time scales. They look like this: first series: t q 0 1 2200 2.2 35000 12 second series: t ...
0
votes
1answer
296 views

How to fix broken R package dependencies after a libgfortran.so update

[In practice this should apply to all Lx distros, and "conceptually" to all Apple and M$ OSes as well.] Upgrading R [base] on your system may sometimes break some dependencies , depending on the ...
0
votes
0answers
37 views

Cropped plot labels in knitted PDF in Linux (r-markdown)

Has anyone experienced having their plot labels cropped in knitted PDF's in Linux? This does not happen in my Windows machine. Here is a minimal r-markdown example to replicate this problem. --- ...
1
vote
1answer
20 views

How to measure the approx completion time of a process at its start time?

I am running an R process using R shiny as the front end. My process takes a long time approx 1 hour to complete. But in order to show the progress notification bar, I need approx time to show. I am ...
0
votes
1answer
58 views

Tracking down why Group Policy Client is changing an environment variable

Something is mysteriously changing one of my environment variables on my Win 7 system. I've followed the guidance in this thread, and tracked down the culprit... to svchost.exe. Process Explorer ...
0
votes
1answer
333 views

R internet routines can't be loaded on an XP SP3 machine

I have installed r in order to be able to perform some statistical tests on some research data that I have. My internet connection is OK but whenever I try to install the relevant package or any ...
0
votes
1answer
55 views

How do I import .R or .r files into Evernote as notes?

I have many r files that I'd like to be able to keep and search in Evernote, so importing them as notes would be great. Importing them as attachments doesn't let me search them.
1
vote
1answer
203 views

How can I get lintr to install on macOS?

I'm trying to install lintr on macOS 10.12.6 (with R 3.4.3 installed via Homebrew), but the installation fails on a sub-package called igraph. Here is the error: ld: warning: directory not found for ...
0
votes
0answers
820 views

How to uninstall r-essentials using conda?

Recently, I installed r-essentials using conda command: conda install -c r r-essentials as it is described in this url: https://anaconda.org/r/r-essentials. However, when I try to run a new R Kernel, ...
1
vote
1answer
32 views

Event Viewer - how to read information

I'm dealing with a situation in which a Windows 10 machine is restarting (or freezing after logon) randomly. It seems that a disk may be the culprit (source is NTFS). However, I could not find how to ...
0
votes
0answers
86 views

Adding Grand Total in R

Is there any way to add the grand total row at the last as I need to know how I can get total Invoiced for all months Note- This dataset is a data.frame and where Months are just vector names. ...
0
votes
1answer
89 views

Setwd in “R” with \\

Quick one - I am a beginner in R Studio so trust asking a silly question . What is the difference between the two code of setwd as not sure ? or is their any difference at all ? setwd("C:/Users/...
0
votes
1answer
202 views

Use libraries installed in Windows from WSL - Ubuntu

I am using WSL - Ubuntu 16.04 in a Windows 10 computer. I already got R and Rstudio installed on the main Windows 10 system. Therefore, I was wondering if a) it is possible to tell Ubuntu to use ...
0
votes
0answers
262 views

when I use TaskschedulerR package why doesn't my R Script save the csv file.?

I have a R Script that uses write.csv to create a CSV file. This works fine when I run it from the command line, but no file is created when I run the script using TaskschedulerR. Why would it let ...
0
votes
1answer
318 views

Interface between FileMaker and R

I would like to run an R Script on some of my data which is contained in a FileMaker database. Are there any options for having a live interface between R and FileMaker? I'd be interested in doing ...
1
vote
0answers
30 views

R gui crashes while compiling R package

I have a R package implemented using C. When I compile (Rcmd -check), everything works fine until the R example script that are part of manual folder starts execution. The C code has a loop that ...
1
vote
2answers
549 views

Process on on Arch Linux running out of memory at 7.6GB in spite of 16GB RAM followed by bus errors

I try to use a large chunk of memory in R, of a size of about 7.6 GB. My system has 16 GB RAM, so I did not expect this to be a problem. However, R prevents this, and attempting to circumvent it leads ...
2
votes
1answer
319 views

Ubuntu GCC Version error in libgfortran

$ lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial $ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 I've just updated R ...
2
votes
1answer
2k views

error: zlib library and headers are required R on HPC

System: Red Hat Enterprise Linux Server release 6.5 (Santiago) I’ve installed zlib 1.2.11 on the home folder of a Red Hat HPC as part of the process for installing R base 3.4.0. I get this error ...
0
votes
1answer
515 views

Page faults, strange memory behavior and page files - particularly but not specifically in R

I should say from the start, I am aware that I could probably do with some more RAM as I'm currently running RStudio on Windows 10 with 4GB of RAM installed. Neither is the post necessarily solely ...
2
votes
1answer
256 views

Code folding with Emacs ESS, polymode for a knitr file (RNW)

Is there anyway of using code folding in an RNW knitr file that contains R and latex code? In particular to be able to fold the R code chunks. I am using polymode so as this changes the mode as you ...
3
votes
1answer
2k views

Use R within Jupyter notebook?

I am using the Jupyter notebook to create interactive code sheets in Python. Now that I have to work with R, I'm wondering: Can I use Jupyter notebook to compile R code as well?
1
vote
0answers
67 views

Command prompt truncates command call

I am trying to build a package through Rstudio, but something is going wrong with the system() calls it sends to command prompt: "//networkpath/JDUB~PN6/DOCU~UZL/R/R-34~TN4.0/bin/x64/R" \ --no-...
0
votes
1answer
91 views

Data visualization: how to make special 2D plot from 3 columns of data?

Recently I found the following plot: and I'm curious if something like this can be done with e.g. Gnuplot (or other software)? I do have data in three columns i.e. distance angle energy. Has anyone ...
0
votes
0answers
115 views

How to compress and send a large file in an R session opened in a ssh server?

I'm running an R session in my university server using ssh. I have a large file 17GB> that I can't save because I don't have enough space. I was wondering if there is a way to compress the file in ...
0
votes
1answer
335 views

How to install R in CentOS 7 under Docker?

I downloaded CentOS from Docker Hub but I am unable to install R with yum or rpm. Commands, such as yum install R, yum install Rcore and rpm install R, do not work. sh-4.2# rpm --query centos-...
1
vote
0answers
124 views

Using Sublime Text 3 for R - options toolbar missing on graph displays

I've recently started using Sublime Text for R coding (on ElementaryOS Loki). Everything's running more or less smoothly, the only problem for now is that I'm missing the toolbar in the graphics ...