Questions tagged [r]

R is a programming language and software environment for statistical computing and graphics.  Use this tag, together with other appropriate ones, for questions that are incidentally or indirectly related to the R language — for example, how to format data for use in R programs, how to display output, or how to resolve failures when installing or running R.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

RStudio requires internet access to exit. How to I change this?

RStudio 1.2.5033 refuses to exit if I am not connect to the internet (often). It took a while for me to figure out what was causing the problem. This is not 100% repeatable, but enabling an internet ...
0
votes
0answers
3 views

Unable to run C++ code (mainly include files (.h) missing) [migrated]

I have tried the following in R 3.6.3 and more recently in R 4.0. Running Mac OSX Catalina. I have version Xcode 11.4.1 and did xcode-select --install to ensure I have the command line tools. When an ...
0
votes
0answers
52 views

install R 3.6.1 on Amazon Linux 2

I have no issue installing R-3.6.0 from epel on an Amazon Linux 2 docker image. Now I am trying to install R-3.6.1 from epel-testing, and having some errors that I am not able to fix. bash-4.2# yum ...
1
vote
1answer
56 views

Merge 3 .csv into one file with different number of columns

I have 3 .csv files and I want to merge them together to one .csv file which can be in R or Matlab. The files are: 1597 obs of 167 variables; 160 obs of 167 variables; 533 obs of 146 variables I ...
1
vote
0answers
20 views

How do I bind the escape key to something else for the vim keybindings in Rstudio

I usually use jk or kj in vim as the keybinding for escape to enter normal mode. How do I do this for the vim keybinds in Rstudio?
1
vote
0answers
42 views

Launch multiple RStudio sessions from Docker on EC2

I managed to install RStudio through Docker, running on port 8787 on my EC2 instance. I wanted to add another RStudio session (not necessarily sharing the same volumes), so I tried the following: ...
0
votes
0answers
114 views

R INSTALL ON SERVER ERROR “bzip2 library and headers are required” despite being already installed

I keep getting the error checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required when trying to install R onto a server environment. I installed bzip2 ...
-1
votes
1answer
23 views

Disconnecting PuTTY with Amazon Web Services EC2

I am using PuTTY to submit a bash file to Amazon Web Services EC2 to run R files. The cursor in PuTTY disappears when I submit the bash file and does not reappear until all of the R files have ...
0
votes
0answers
17 views

Unformatted table from markdown

I am trying to export tables from R to word using R-markdown via huxtable package but it looks unformatted. After exporting RStudio lauunchs Word on Read only mode and tables looks pretty, but when I ...
0
votes
0answers
25 views

Rstan doesn't run and stops R from generating error messages

After upgrading my Mac to Catalina, my RStan doesn't run and after running it, it stops my R from generating error messages. Can someone help me with this?
0
votes
1answer
29 views

How to plot longitudinal data in R

I am trying to plot longitudinal data in R. My data frame has this form: participant_ID group S1 S2 S3 S4 S5 S6 S7 S8 1 ctrl 14.00 14.00 13.00 13.00 7.00 8.00 4.00 1.00 2 ...
4
votes
2answers
1k views

Unable to knit to PDF using TinyTeX: Missing *.sty file

I've installed TinyTeX and am now trying to knit the generic "Untitled.Rmd" file to PDF, > install.packages("tinytex") > tinytex::install_tinytex() > options(tinytex.verbose = TRUE) > ...
2
votes
0answers
61 views

DLL file could not be located when loading RStudio

I got this message after installing the latest R and RStudio and trying to load RStudio: Procedure Entry Point modf could not be found in dynamic link library in qt5positioning.dll I tried to ...
-1
votes
1answer
111 views

Unable to access R caret function

Good evening, I installed R (version 3.5.1) and I work with RStudio (version 1.1.456) on a 64 bits Windows 7 Home Premium with 4.00 GB (RAM). I downloaded the caret package and I loaded it (library(...
1
vote
1answer
309 views

Installing rJava on Ubuntu 18.04.3

I cannot get rJava to install (see log below). I have scoured google and have attempted to resolve this by installing the following packages to no avail: libxml2-dev libcairo2-dev libsqlite-dev ...
0
votes
1answer
174 views

Falling to install Remi repo: RHEL 7.4

How to force subscription manager to accept REMI repo? I'm not sure how to proceed. I've already spent 3 hours looking for a solution. What I want in the end is to be able to install R (yum install -...
0
votes
1answer
36 views

Installing R on RHEL 7.4

I've checked this one Installing R on RHEL 7 but it's not solving my problem. When I run yum install R I ended up with some dependencies error as below
1
vote
0answers
194 views

Problems running R from SQL Server

I am running a standard piece of code from the MS SQL manual to test R functionality and am getting the error below. I'm thinking this is a setup issue of some kind since I am running code used as an ...
1
vote
1answer
33 views

Creating 0 entries for missing values in a date sequence for a unique set of columns in Excel

I have been struggling to fix a database that contains market size information. Because it is internal data I can't share the original file. The original file is just the example but much much bigger. ...
0
votes
0answers
21 views

Package installations error after upgrading to R version 3.6.1

I have been trying to install packages after upgrading R version to 3.6.1 and for every package I get the error: Error: package or namespace load failed for ‘usethis’: package ‘fs’ was installed by ...
0
votes
0answers
121 views

ggplot2 Installation on R [32bit - 64 bit mismatch]

I am a beginner in R. I am able to install "tidyverse" and "rlang" but when I type in "library(ggplot2) and execute it, I get the following error, library(ggplot2) Error: package or namespace ...
0
votes
0answers
447 views

How to convert parquet timestamp for AWS Athena to query?

I am having trouble querying a table that I have created in AWS Athena. The problem column is the timestamp column. I have the data stored in parquet format in S3. I am using the Arrow package in R ...
0
votes
0answers
13 views

geting error with calling user defined R functions using Tableau

I've written some functions in R and saved them in our R server in order to use them tableau. and I've connected my tableau desktop to R server successfully. but when it comes to using the function in ...
0
votes
0answers
13 views

R xquartz installer on MAC

I tried and fail to install R (3.6.1) on my MAC (Mojave 10.14. At some point when I run R and type : library('Rcmdr') to start Xquartx interface the program return to me this error (see picture) enter ...
0
votes
0answers
148 views

R configure: error: zlib library and headers are required

Trying to configure R locally on a Red hat cluster I installed zlib 1.2.9 to dodge this problem But I get the same result: configure: error: zlib library and headers are required
0
votes
0answers
66 views

Cannot launch rstudio on Deepin 15.11 (rstudio: /lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by rstudio))

I re-installed linux and suddenly Rstudio wont launch after installing the .deb file. (rstudio-1.2.5001-amd64) I already tried installing the dependencies from the source code but nothing works.
0
votes
0answers
10 views

Libraries and Packages, Python and R, old version to new

A computer was formatted. Previously I had Python 2.7 and R installed, and they are working fine in the old set up with all packages and libraries. All related folders were saved as copies. Now I ...
0
votes
0answers
39 views

R-Studio Cloud Permission Denied

I've been having problems with R-studio on my Mac (Mavericks), so I was able to find R-studio Cloud online (https://rstudio.cloud/). However when I try to upload a file from my computer, I get the ...
0
votes
2answers
886 views

RStudio: Trouble uploading an Excel file. "No package called 'pkgconfig'

I was able to import an excel spreadsheet into RStudio and work on it while at work, so I decided to email myself the same spreadsheet and work on it at home as well. When I downloaded the excel file ...
0
votes
0answers
55 views

R, sh not found, likely broken PATH

Having a critical issue installing packages in R (I'm on Mac OS). I tried installing a package (below) using Rstudio: > install.packages("igraph") Installing package into ‘/usr/local/lib/R/3.6/...
0
votes
0answers
24 views

Beginning R user looks in vain for understandable guides

In my opinion, the documentation built into R is cryptic. I'm sure after I learn the the top 100 key terms thoroughly, it will make more sense. I've also looked around for R tutorials that are clear ...
0
votes
1answer
48 views

title-match on application pinned to windows taskbar

Q: How do I add command-line arguments to a pinned application and still have it match? My habits/workflow have a number of apps "pinned" to the windows taskbar, so that Win-# will "always" switch me ...
0
votes
0answers
147 views

3D plot in R for sum of squares

I am trying to plot a 3D function based on the data: t y 1 0 1.1 2 1 1.9 3 2 2.8 4 3 3.2 First, I am trying to get the function f(x)=summation from i=1 to 4 |yi − y(ti)|^2 where y(t)=a*t+b where ...
0
votes
1answer
421 views

Installation of R version 3.3.2 Error - caught segmentation fault address 0x0, 'cause' memory not mapped

I currently can run the most recent version 3.6.1 of R on my mac however I need to install an older version (specifically version 3.3.2) in order to run analysis in a different application (nSolver). ...
0
votes
0answers
51 views

Unable to install Rattle on maOS Mojave running R 3.6.1

Followed all the 4 install options as prescribed in the mentioned link: https://rattle.togaware.com/rattle-install-mac.html Every time I try to open Rattle: in Rstudio, it restarts with a message "R ...
0
votes
1answer
84 views

installing sampleSelection package in R

I am currently running R 3.2.4 on windows 10. I have been trying for several days to install the sampleSelectio package without success. i am new in R and I don't know what else to do. i have ...
0
votes
1answer
162 views

Rscript file path with space on windows

I have Google Drive folder saved in my windows. I have created the bat file in that folder to run R through task scheduler but it's not reading the file as there is a spaece inbetween Google Drive.. ...
1
vote
0answers
78 views

Using ChromeOS linux beta to run Rstudio, want to download package, but even after installing says it does not exist?

This is my output when trying to download the package in Rstudio: install.packages("emmeans") Installing package into ‘/home/malachiomally/R/x86_64-pc-linux-gnu-library/3.3’ (as ‘lib’ is ...
0
votes
0answers
21 views

unable to install any package in R studio and R

I cannot install any packages in R studio. Online or from downloaded file on my system. Online, it's a problem of some connectivity. Offline, it gives this message: installation of package ‘C:/...
0
votes
1answer
372 views

Installation of package ' ' had non-zero exit (tidyverse R - linux mint)

I've tried sudo apt-get update sudo apt-get install r-base-dev sudo apt-get install libcurl4-openssl-dev sudo apt-get install libxml2-dev but R is keep showing me these messages: 1: In install....
0
votes
0answers
57 views

rpy2 can't find RHOME mac

I am having trouble with rpy2 (version '2.8.6') which I am using with python 2.7.15 which is in my pyenv. It looks like rpy2 is looking for r libraries in the wrong place but I am not sure how to ...
1
vote
0answers
166 views

R and Sparklyr - unable to connect to spark

I Have the following code. #loading library library(sparklyr) library(tidyverse) # Installing spark spark_install(version = "2.4.3") devtools::install_github("rstudio/sparklyr") sc <- ...
0
votes
0answers
19 views

citr for R creates incorrect bib-file when there are diacritics

citr is a plugin for R that can connect to Zotero, in order to insert citations into R Markdown files with convenient search, while building a bib-file for that markdown file. I have an issue with ...
0
votes
0answers
4 views

trouble while integrating spark over R studio?

enter image description here I have followed all the steps to integrate spark with R studio. everything from installing packages works fine. when I connect to spark connect command ( sc<-...
0
votes
0answers
20 views

How can I get, in R, features of Excel cells?

I know, and use, several R libraries to read Excel sheets. But all of them seems to get only the content of the cells and I wanted to get also some feature informations (like text color, background ...
0
votes
2answers
582 views

Unable to install Tidyverse Package in RStudio

When i try to install Tidyverse package in RStudio im geetting following error and installation gets terminated. Warning in install.packages : unable to access index for repository https://cran....
1
vote
1answer
151 views

R syntax highlighting in Jupyter Lab not working

I use a Macbook Pro running High Sierra. At first I created a R virtual environment with: conda create -n R r-essentials r-base Then I installed Java JDK, inside the new environment with: conda ...
0
votes
0answers
12 views

Problems with PLM in R

When I use the "fd" (first differencing) option in the PLM-package in R, it reports an incorrect N and degrees of freedom. Does anybody else have this problem or know how to fix it?
2
votes
1answer
67 views

Scatter plot points shifted slightly

I have some data from three different machines and want to have a scatter plot with the points for each showing per animal that they were taken from. I have been using plot() for the first set and ...
0
votes
0answers
49 views

Trouble installing R packges

I've installed Cygwin, with R, gcc and some other tools. It all appears fine, however when I try to install R packages (e.g. install.packages("e1071") ) I get the following messages: g++ -std=gnu++11 ...

1
2 3 4 5 6