devtools

R: Encoding issues when installing package from Github

大城市里の小女人 提交于 2019-12-23 23:23:49
问题 I am trying to install the dcStockR package from Github, which is an htmlwidgets wrapper around the dc.js dimensional visualization library: devtools::install_github("yutannihilation/dcStockR") . I get the following encoding error: * installing *source* package 'dcStockR' ... ** R Error in parse(outFile) : C:/Users/tirthankarc/AppData/Local/Temp/Rtmpcz8pHX/devtools153839438c/yutannihilation-dcStockR-c6091c8/R/dc.R:11:59: unexpected input 10: #' @export 11: dc <- function(data, chartRecipe = c

Roxygen Warning “cannot open the connection” “Permission Denied”

半城伤御伤魂 提交于 2019-12-23 22:23:27
问题 I'm working with roxygen2 and for some reason I can't get it to run. I've tried: > devtools::load_all() > devtools::document() which resulted in: Updating xxxx documentation Loading xxxx First time using roxygen2. Upgrading automatically... Writing NAMESPACE Error in file(con, "r") : cannot open the connection In addition: Warning message: In file(con, "r") : cannot open file 'C:\Users\xxxxxxx': Permission denied I also tried: > roxygen2::roxygenise() yielding: Loading xxxx Error in file(con,

Does install_github recursively install dependencies?

谁说我不能喝 提交于 2019-12-23 08:00:11
问题 The R package devtools seems the method of choice for installing R packages directly from their github repository, using the install_github() function. While doing so, not only the addressed github-package is installed, but also its direct CRAN-dependencies, i.e., the Depends and Imports as defined in the Description/Namespace files of the package. However, I am wondering if indirectly required packages such as those in turn required by the Depends and Imports packages become automatically

Install_package does not find Rtools after rtools35 has been updated in latest R update

我与影子孤独终老i 提交于 2019-12-23 05:43:14
问题 devtools::install_github(repo) keeps installing rtools35.exe I try installing a new author account repository from 'author/newrepo'and keep getting R wants to install new buildtoools message. Then the installation exits. Rtools35.exe installation has already been completed. I am using older version of R (3.5.0) currentlyy because RTools is not available for the 3.5.1 update `devtools::install_github(repo)` Downloading bitbucket repo author/repo@master trying URL 'https://cran.rstudio.com/bin

iOS Devtools.Core Framework pbxcp missing in Xcode?

半世苍凉 提交于 2019-12-22 08:24:26
问题 I downloaded the Doomclassic Source Code and wanted to have a look at it. First I wanted to compile it to see if it actually works. So I followed the instructions and copied the .wad files into the base folder, openend the project and hit compile. Aside from the over 300 warnings and the missing files (mostly Images, which I mostly fixed) I have a strange error during teh compile phase and google is no help at all. It says: /Users/tobias/Library/Developer/Xcode/DerivedData/Doom

Automatic loading of data from sysdata.rda in package

亡梦爱人 提交于 2019-12-22 06:35:40
问题 I have spent a lot of time searching for an answer to what is probably a very basic question, but I just can't find the solution to my issue. The closest that I found was this exchange from a few years ago. In that case, the issue was the location of the sysdata.rda file in the correct directory within the package. That is not my issue. I have some variables that store things like color palettes that I amusing inside a package. These variables are only used inside my functions so I storing

How to export S3 method so it is available in namespace?

落花浮王杯 提交于 2019-12-22 03:40:51
问题 I am creating a package and for S3 methods I export them using ##' @method predict myclass ##' @export predict.myclass <- function(object,...) { } Now when I load the package, then predict works on object of the class myclass , but function predict.myclass is not exported. In the NAMESPACE I only get the entry S3method(predict,myclass) . So is there a way to export predict.myclass too, so that user will get the code of predict.myclass when he(she) writes predict.myclass in the console? 回答1:

Which is the correct folder to store images used in vignettes for R packages ?

三世轮回 提交于 2019-12-22 01:26:31
问题 I am writing a vignette for my R package. I want to include a .jpg image on the .Rmd file that will generate the pdf vignette. The question is: where should I store this image? I am using the packages devtools and knitr to generate vignettes (following the advise from @hadley book link). Therefore, I have the folder vignettes in my package structure. Should I just include the file there? Or should I include the image on a new folder inside 'inst/images' , as suggested for external data used

How to open dev tools in iOS emulator on Browserstack?

断了今生、忘了曾经 提交于 2019-12-21 09:04:21
问题 I am using iPhone 6 emulator with iOS 8.3 on Browserstack and I need to inspect the source code of the website I am woking on. How do I open developer tools in iOS emulator on Browserstack? 回答1: Browserstack now appears to support Dev Tools, but only on physical devices (those with a blue mobile icon, below). You activate the dev tools by clicking the button in the toolbar: As Alf Eaton mentioned in a comment below, some iOS devices now offer a choice of which browser to open (Chrome or

How to open dev tools in iOS emulator on Browserstack?

不羁的心 提交于 2019-12-21 09:03:06
问题 I am using iPhone 6 emulator with iOS 8.3 on Browserstack and I need to inspect the source code of the website I am woking on. How do I open developer tools in iOS emulator on Browserstack? 回答1: Browserstack now appears to support Dev Tools, but only on physical devices (those with a blue mobile icon, below). You activate the dev tools by clicking the button in the toolbar: As Alf Eaton mentioned in a comment below, some iOS devices now offer a choice of which browser to open (Chrome or