Questions tagged [rstudio]

1

votes
1

answer
365

Views

Sys.setenv(“SNC_LIB” = lib_path_64) fails

I'm using the package RSAP to read SAP data. RSAP loads a SNC (Secure Network Connection) dynamic library and searching for it with the environment variable SNC_LIB. Depending on the local user system, this might be a 32 or 64 bit library. I'm setting the environment variable within my R script. But...
Guido Berning
1

votes
1

answer
644

Views

Rstudio server cannot find correct location of R installation (ubuntu)

I have R 3.4.0 installed to /home/ubuntu/software/R/R-3.4.0/bin, which is a 'non-standard' install location. I then installed rstudio server, and edited the rserver.conf file to include: rsession-which-r=/home/ubuntu/software/R/R-3.4.0/bin I thought this would be sufficient. At ip:8787 the rstudio s...
Garglesoap
1

votes
0

answer
55

Views

RStudio on Ubuntu server: Deploying library() as admin to load/attach package for all users

I'm trying to install and load/attach (the latter via library()) add-on packages in R as an admin in RStudio hosted on an Ubuntu server. I've been able to install the packages just fine, so that the user at most has to run library(package_name) when using the package for the first time. However, it...
Meg
1

votes
0

answer
73

Views

Shiny Server on AWS not viewable on Chrome behind firewall

Hello Shiny / sysadmin / AWS gurus: I have Shiny Server running on an Ubuntu AWS instance here: http://54.163.27.74:3838/ I followed this R-bloggers post to get it set up, with custom TCP rules for 3838 (Shiny) and 8787 (RStudio). It was not viewable when I tried to access at work, where some firewa...
Dan Flynn
1

votes
0

answer
2.7k

Views

Increase R studio's connection timeout limit

Is it possible to increase R-studio's connection time out limit? I am getting the following error: Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: Connection timed out after 10000 milliseconds The below line of code caused the initial error. I am trying to use google s...
Syed
1

votes
0

answer
30

Views

Collapsed functions after opening script

Is there a way to show functions collapsed, after opening a script in RStudio? I like to just open the part of my script, which I manipulate and until now, I close collapse the other brackets manually and would like to automate that.
Johannes Ptok
1

votes
0

answer
77

Views

RStudio: move focus among the panels

RStudio shortcuts exist for moving between Source and Console panes .. and showing the Environment/History and Packages/File System panes .. but not moving to them. Keyboard shortcuts: https://support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts It is a very frequent operation to switc...
javadba
1

votes
0

answer
231

Views

Math Expression in RMarkdown and Markdown (RStudio)

I was trying to create a technical note in R Markdown with Knit in RStudio. If I output an html file, it works well. However, if I output a Markdown (to be uploaded as a post in blog) file, some formulas cannot be shown correctly. Does anyone know why? Thanks in advance. This is the .rmd file This i...
Math Novice
4

votes
1

answer
40

Views

Temporarily Stop R From Recording History

I find it very useful, in general, for my R history to be saved. I refer to it weekly, or more. Exploratory work in the console gradually gets refined and added to a file. Occasionally a command will have a secret in it like an API key or searching a dataframe with confidential info, in which case I...
Josh Rumbut
1

votes
0

answer
342

Views

R Notebook doesn't show the output in the preview and in the .nb.html file

In Rstudio, I open a R Notebook, I run all chunks (I use the default script of Notebook). The 'plot(cars)' display inline the plot. I save the Notebook (doc.Rmd). When I click on Preview, no output is shown in the preview. And no output is shown in the doc.nb.html. How show the output in the preview...
DAT
1

votes
0

answer
165

Views

Can you make R add data to global environment while knitting an R Markdown document?

I am aware that R Markdown cannot reference data within your global environment unless they are part of your R Markdown script (see this question: How to use objects from global environment in Rstudio Markdown). However, I'm confused why Markdown does not add data to my global environment when I kni...
Scott Z
1

votes
0

answer
41

Views

Suppressing Java function to print to console in R

I use a function called R2BGLiMS that is a front-end to a Java application. library(devtools) install_github('pjnewcombe/R2BGLiMS') # see https://github.com/pjnewcombe/R2BGLiMS My problem is that this function prints a lot of output to console which I want to suppress. I tried all of sink, invisible...
tomka
1

votes
0

answer
34

Views

Combining Vectors of Different Lengths in web scraping script

I'm using a web scraping script that someone else had built out. library(rvest) # For web scraping library(stringr) # For string processing base_url
gooponyagrinch
1

votes
0

answer
584

Views

openxlsx error - Error: zipping up workbook failed. Please make sure Rtools is installed or a zip application is available to R

I have been researching this issue for a few days now and so far none of the offered fixes have worked for me I am hoping someone will be able to help. The Setup: I am working on a project where the final step is to take an Rstudio dataset and export it into an excel workbook with different sections...
M. Pope
1

votes
0

answer
21

Views

Strange Chinese characters mixed with English in RStudio

I got strange Chinese characters whenever I try to install packages. For instance: installing the source package 態H I tried to searched this online and found a solution that says I can change the option, i.e. options(useFancyQuotes = FALSE) This works perfectly. However, this only solve the probl...
Neucoder
1

votes
1

answer
427

Views

R Makevars file not correctly overriding g++

I'm trying to install the R package 'lubridate' on Centos 6. Because lubridate requires a more recent version of g++ than the standard compiler on Centos 6 I downloaded and compiled version gcc 4.9 (from what I've been reading, lubridate requires >v4.8) I've then added the lines: CXX=/opt/gcc_4.9.1...
jearl
1

votes
1

answer
167

Views

bookdown chapter heading not correct

I am using the bookdown to write a book. I've defined the documentclass as book. Everything seems to be working correctly - the Table of Contents, List of Tables and List of Figures along with an Appendix, Bibliography and Index. However, in my index.Rmd file I lead off with a Preface section that i...
Melinda Higgins
1

votes
1

answer
117

Views

Issue in Facebook Replies download from post comments

I am trying to download public comments and replies from the FACEBOOK public post by page. my code is working until 5 Feb'18, Now it is showing below error for the 'Replies'. Error in data.frame(from_id = json$from$id, from_name = json$from$name, : arguments imply differing number of rows: 0, 1 Ca...
sanjay saini
1

votes
1

answer
374

Views

Keyboard layout changed in RStudio but nowhere else

Since yesterday I am encountering this strange error in RStudio. The keyboard-layout has changed completely. However, only in RStudio and nowhere else. y became the z button - became / ( became * ) became ( = became ) ? became _ how can I resolve this issue? I am running RStudio 1.1.383 and ran the...
Braino
1

votes
0

answer
21

Views

Read only new files from a folder

In Rstudio I am trying to read csv-format data files from a folder where new files are being added continuously. I want to read only the new files every 10 minutes. How can I write code that checks the folder for new files every few minutes and reads only those files from that folder?
mashwood
1

votes
1

answer
117

Views

Calling `odbc` connection within function does not display in RStudio Connection Pane

I'm working to streamline some database connections. Using the odbc package, I have successfully established a connection with one of my databases like so: library(odbc) con
Dave Gruenewald
1

votes
1

answer
467

Views

Error in publishing to RPubs from Rstudio

I installed the latest version of RStudio (RStudio 1.1.423 - Windows Vista / 7/8/10). I'm trying to publish to RPubs, but in Global Options does not appear the option for Rpubs. When I request Publish Document, the following error appears: Error occurred while executing method. Rprofile: I entered t...
Ademilson Maciel
1

votes
0

answer
866

Views

RStudio installation - yaml error messages

Having some issues helping a colleague at work install RStudio. She was getting the following error message whenever she opened up the programme and when trying to install new packages. Error in yaml.load(readLines(con), error.label = error.label, ...) : object 'C_unserialize_from_yaml' not found E...
James
1

votes
0

answer
229

Views

Is it possible to kill idle sparklyr sessions?

Is it possible to kill idle sparklyr spark sessions after a given period of inactivity? I don't need to kill sessions that run long because they are processing a lot of data, but I need to terminate hanging sessions when user didn't call spark_disconnect having had finished doing their stuff. Ideall...
Matt Pollock
1

votes
1

answer
232

Views

RStudio not loading RevoScaleR on Ubuntu 16.04

Long story short: Calling rxImport() works fine in a Terminal R session but fails when using RStudio, despite using the same installation of R. Setup: I'd like to use RevoScaleR functions like rxImport(...) on Ubuntu. I have an installation of RStudio and R done through package manager. I've install...
Dedalus
1

votes
0

answer
31

Views

CollapseTree in Rshiny. how to add a node dynamically in R

I am new to R. I am working on Rshiny app and I am trying to create a collapse tree. I want to add new node by giving the node name a input. As I give the input value the node must be created dynamically. I am using CollapseTree package now.
Deepika Ravikumar
1

votes
2

answer
194

Views

Unable to install new R packages in DSX Desktop

I've just installed DSX Desktop with RStudio. I'm unable to load new packages, e.g. lubridate, and get the error below. If I check for package updates, I get the message 'all packages are up-to-date', but the error below suggests it needs a newer version of Rcpp. installing to /user-home/_global_/...
Carl
1

votes
0

answer
97

Views

R Package installation on centOS 7 Server - http error

I am struggling to get a package installation via 'install.packages('packagename') working on a centOS server using the latest R-Release. The server was setup with R Studio Server Pro. Internet access is working in general. Package download works also, but after the download, the final installation...
Christoph
1

votes
1

answer
56

Views

Embeded Plots Missing when Knitting to PDF

I know this question has been asked in different formats, but when searching I couldn't find a solution or problem similar to mine. Using Mac with RStudio (Version 1.0.153 ) R (version 3.4.3 (2017-11-30) -- 'Kite-Eating Tree') I am just trying to knit to a PDF (weave using knitr) in R markdown, but...
Melinda Martinez
1

votes
0

answer
133

Views

Map term indices to words in sparklyr ml_count_vectorizer

I cannot figure out how to map term indices produced by ft_count_vectorizer in sparklyr back to vocabulary words. The output of lda models only has term indices, not words, so it is hard to make sense of the output without being able to map indices to words. Example below. library(sparklyr) librar...
alex56
1

votes
0

answer
329

Views

R server Error Saving File No such file or directory (Ubuntu)

This question is similar to this post, but the response there doesn't really give what I need. Context: After I edit the R script on RStudio, it pops out an error message and says: 'Error Saving File: No such file or directory'. At the same time, I can't open any script also (error message: 'Error w...
LeGeniusII
1

votes
1

answer
540

Views

Can't plot because “Failed to load cairo DLL” in rstudio, but not in R

I installed R 3.4 via conda, but plotting does not work in Rstudio, though does work in R, started in the terminal. When plot(1:5), it printed Error in RStudioGD() : Shadow graphics device error: r error 4 (R code execution error) In addition: There were 50 or more warnings (use warnings() to see...
Zhilong Jia
1

votes
1

answer
36

Views

No code displayed when I open the compiled R notebook

I am using R Studio V 1.1.423. I create and save R Notebook files but once I open the .rmd files in R Studio I only get a completely blank page with no code displayed. However the html files work fine when opened in the browser. Any suggestions would be really appreciated.
Raoul
1

votes
0

answer
191

Views

How to comment out multiple lines in text file in RStudio

In RStudio, when I am writing a multi-line comment in a text file, such as a makefile, is there a way I can comment out several lines besides hitting return and entering a # at the start of each line?
Joe
1

votes
0

answer
616

Views

ERROR: path[1]=“”: The filename, directory name, or volume label syntax is incorrect

Can anyone explain to me what the following error is and how I can fix it: ERROR: path[1]='': The filename, directory name, or volume label syntax is incorrect It's from the RStudio add-in for the package taskscheduleR Yes, I've checked other similar tickets and still can't figure it out. Here is a...
wizkids121
1

votes
1

answer
253

Views

RStudio: Pandoc.exe has stopped working (Error 5)

I just tried to knit a very simple .Rmd document with output set to isoslides; but I'm getting an error with pandoc (Error 5). --- title: 'Test' date: 'April 3, 2018' output: ioslides_presentation --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = FALSE) ``` ## Slide with R Output ```{r ca...
Nova
1

votes
0

answer
169

Views

Is there a way to call RStudio's code format programmatically?

I'd like to pretty-format an R snippet. There's formatR but because it's based on deparse there's a lot it cannot actually do, pipe operator %>% being one of such things. RStudio has great code formatting capabilities but they don't seem to be accessible via any public API. I checked that the actual...
Lukasz
1

votes
0

answer
319

Views

show.progress in readr and knitr

I am currently working on a .Rmd notebook, RStudio version 1.1.442. Following the Knitr manual and different examples found also in various vignette, in my notebook I've asked readr (installed version: 1.1.1) not to show progress bar using a hidden code blok: ```{r global_opts, echo=FALSE} options(r...
CheTesta
1

votes
0

answer
281

Views

Error in fetch(key): lazy-load database in base R

My RStudio server interface is occasionally returning an error dialog: and printing the following to my R console: Error in fetch(key) : lazy-load database '$INSTALLED_PATH/lib64/R/library/base/help/base.rdb' is corrupt It also seems to break fonts in plots: Searching through similar error message...
wdkrnls
0

votes
0

answer
16

Views

Unable to get lastest version of Stringr, knitr, Rmarkdown

R.version platform x86_64-w64-mingw32 arch x86_64 os mingw32 system x86_64, mingw32 status major 3 minor 3.2...
tcratius

View additional questions