rstudio

Date in dygraph (using R and xts) shows one day earlier than data

五迷三道 提交于 2021-01-28 08:01:16
问题 This is my first stackoverflow question, so apologies in advance for any lapses in etiquette or presentation. I am using the dygraphs() package in R (3.3.3 on a Mac running Mavericks, using RStudio) to graph a time series of box-office receipts from an 18th-century theater. The dates run from 1789-04-14 to 1791-03-07. I'm using the newest version of the xts package (0.10-0), but the problem was identical in the previous version. As an xts object the data looks like this: head(receipts.xts) kr

Blogdown new post addin creates but not loads new file

霸气de小男生 提交于 2021-01-28 08:00:16
问题 Context After installed (see previous post) and configured my personal Hugo website for a multilingual setup (by directories), I wanted to start creating content. Ideally, I wanted to use blogdown in RStudio, via the addins. The website uses the Academic theme, rebranded now as Wowchemy. The content directory tree is as follows: content | ├── en ├── authors ├── files (for static files) ├── home (homepage widgets) ├── post ├── project └── resources | └── hu ├── authors ├── files (for static

R View() function does not show data frame

旧巷老猫 提交于 2021-01-28 06:29:16
问题 I am using R (Version 3.1.2) with RStudio (Version 0.98.1091) on a Linux Ubuntu machine. I have a csv file loaded in variable: rr <- read.csv("/home/user/seconds.csv") When I call View(rr) I expect to open a new tab and display the CSV data in the rr variable. However, it opens a new tab called rr and it displays the following message. /content?title=rr&file=94af460bd6644d3aaac734d585046c4f.htm not found 回答1: The View function is from package 'utils' which is not supported by the version of R

Search unicode character in R package/.Rd file

房东的猫 提交于 2021-01-28 05:14:42
问题 How can I search for a specific unicode character in an R package or a specific file (I am using the RStudio IDE). I am trying to submit a package to CRAN. All checks pass except for: W checking PDF version of manual (49.5s) LaTeX errors when creating PDF version. This typically indicates Rd problems. LaTeX errors found: ! Package inputenc Error: Unicode character (U+008D) (inputenc) not set up for use with LaTeX. So when all Rd files are compiled to one pdf there seems to be a problematic

How to manage different versions of R on Mac?

别等时光非礼了梦想. 提交于 2021-01-28 02:39:17
问题 I use R with RStudio on the Mac. In order to use different packages I need to use several versions of R. It seems that RSwitch is no longer available for download. How do I manage different versions of R in the easiest way on the Mac? 回答1: This was asked and answered today on the R_SIG_Mac mailing list. It appears that the maintainer of that tool had some HD issues and some of his copies of those files were lost, leading to a bunch of dead links on the site. Some other R core members have

RStudio maximum file size reached

心已入冬 提交于 2021-01-27 23:52:54
问题 I have downloaded RStudio and in opening a file where my code resides it seems I have reached a capacity constraint: The file is 2.3MB the maximum file size is 2MB The file is too large to open at the source Is there any way around this besides reducing the size of the file or slicing the file in two or similar? 回答1: The answer is very likely no, you cannot do this. I refer you to this question on the RStudio support forum, where they suggest that the editor is not capable of handling such

Issues accessing Sharepoint .xlsx file in R

家住魔仙堡 提交于 2021-01-27 20:46:46
问题 I am attempting to pull data from our SharePoint using the instructions found here (StackOverflow question). Here is the code I am using: library(readxl) read_excel('//MyCompany.sharepoint.com/teams/MyProject/Shared Documents/MyExcelFile.xlsx', 'Sheet1', skip=1) When I enter https://MyCompany.sharepoint.com/teams/MyProject/Shared Documents/MyExcelFile.xlsx into my browser it prompts me to open the Excel document in Excel (not Excel online). So my assumption is that the link works. I have also

x-axis with more than one factor groups ggplot

可紊 提交于 2021-01-27 20:13:20
问题 I am a newbie to R. I have climate data, as presented in few lines below. The data indicate temperature change with respect to historical climate. I want to create a box plot (ggplot) which looks like this: I am trying to figure out how to create this kind of plot. Any help will be highly appreciated DATE TMAX TMIN 1/1/2010 2.927586207 0.627586207 1/2/2010 0.827586207 0.824137931 1/3/2010 2.031034483 0.55862069 1/4/2010 2.648275862 0.7 1/5/2010 2.196551724 0.393103448 1/6/2010 1.220689655 0.5

Accessing files from Google cloud storage in RStudio

佐手、 提交于 2021-01-27 14:37:06
问题 I have been trying to create connection between the Google cloud storage and RStudio server(The one I spinned up in Google cloud), so that I can access the files in R to run sum analysis on. I have found three different ways to do it on the web, but I don't see many clarity around these ways so far. Access the file by using the public URL specific to the file [This is not an option for me] Mount the Google cloud storage as a disc in RStudio server and access it like any other files in the

projectRaster consuming too much memory

强颜欢笑 提交于 2021-01-27 13:20:56
问题 I'm doing some spatial stuff in R and out of the blue some of my code will no longer work on a computer that I've been using for years, specifically because it's "running out of memory." ## Raster going in xx <- raster(fatNames[[i]]) xx class : RasterLayer dimensions : 5160, 14436, 74489760 (nrow, ncol, ncell) resolution : 0.008333333, 0.008333333 (x, y) extent : -172.3, -52, 23.5, 66.5 (xmin, xmax, ymin, ymax) coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0 data