rprofile

.Rprofile not sourced

走远了吗. 提交于 2020-07-05 07:47:16
问题 I am trying to set some global options for blogdown package in ~/.Rprofile script but they are not being sourced. Here's how the .Rprofile script looks like: options(blogdown.ext = ".Rmd", blogdown.author = "Maryam Khezrzadeh") I have also tried setting the options at the project level by creating an .Rprofile script in my project's working directory. but that doesn't get sourced either. I have restarted the R session from within RStudio and have also restarted RStudio and finally restarted

updating both Rprofile and R to the same version

浪尽此生 提交于 2019-12-12 06:44:21
问题 Is there any idea, how I can find the version of my Rscript? The issue is, once I am running R in mac terminal, the version is 3.2.2 but running via Rscript the version is changed to 3.0.2. I would like to know how to update my Rscript's version! 回答1: I cannot comment, because I have less than 50 rep, so I'm writing here. Are you under macOS Sierra? When I upgraded R to version 3.4.0 after upgrading my Mac to macOS 10.12 (Sierra) I had some problems with rJava. While I searched for a solution

Installing packages from RProfile.site file

隐身守侯 提交于 2019-12-07 16:39:24
问题 I asked this question earlier, but am still unable to get it working. I am trying to install custom packages upon starting R. A lot of the code that is written by us right now is available for editing to the users. To try and protect the code, I am packaging the production level code and having the users install it on their machine during start up. However, when I try to install packages in RProfile.site file, the program goes into a loop and R is constantly launched over and over. I noticed

Installing packages from RProfile.site file

北慕城南 提交于 2019-12-05 21:28:35
I asked this question earlier, but am still unable to get it working. I am trying to install custom packages upon starting R. A lot of the code that is written by us right now is available for editing to the users. To try and protect the code, I am packaging the production level code and having the users install it on their machine during start up. However, when I try to install packages in RProfile.site file, the program goes into a loop and R is constantly launched over and over. I noticed that a lock file for the package is created along with the package in the library folder within R. Here

Getting .Rprofile to Load at Startup

拟墨画扇 提交于 2019-12-01 15:36:10
I have a global ~/.Rprofile file and another .Rprofile file located in my project's current working directory and both of the have the following contents: .First() <- function() { options(rstudio.markdownToHTML = function(inputFile, outputFile) { system(paste("pandoc", shQuote(inputFile), "-s --webtex -o", shQuote(outputFile))) } ) } Unfortunately, when I open the RStudio app neither of them appear to be working. The aim of what I'm trying to do is to make the "Knit HTML" button render the Markdown file, which has inline LaTeX, process through Pandoc using webtex as the LaTeX renderer. Does

Getting .Rprofile to Load at Startup

不羁的心 提交于 2019-12-01 14:31:01
问题 I have a global ~/.Rprofile file and another .Rprofile file located in my project's current working directory and both of the have the following contents: .First() <- function() { options(rstudio.markdownToHTML = function(inputFile, outputFile) { system(paste("pandoc", shQuote(inputFile), "-s --webtex -o", shQuote(outputFile))) } ) } Unfortunately, when I open the RStudio app neither of them appear to be working. The aim of what I'm trying to do is to make the "Knit HTML" button render the

Locate the “.Rprofile” file generating default options

混江龙づ霸主 提交于 2019-11-26 17:24:51
In R and RStudio, I think I have messed around with the .Rprofile file a few times, and I currently am loading up an old version of it upon startup of R or RStudio, is there a way that I can quickly find the location of the file that is generating the default options? Thanks Like @Gsee suggested, ?Startup has all you need. Note that there isn't just the user profile file, but also a site profile file you could have messed with. And that both files can be found in multiple locations. You could run the following to list existing files on your system among those listed on the page: candidates <-

Locate the “.Rprofile” file generating default options

狂风中的少年 提交于 2019-11-26 05:25:07
问题 In R and RStudio, I think I have messed around with the .Rprofile file a few times, and I currently am loading up an old version of it upon startup of R or RStudio, is there a way that I can quickly find the location of the file that is generating the default options? Thanks 回答1: Like @Gsee suggested, ?Startup has all you need. Note that there isn't just the user profile file, but also a site profile file you could have messed with. And that both files can be found in multiple locations. You

Expert R users, what&#39;s in your .Rprofile? [closed]

僤鯓⒐⒋嵵緔 提交于 2019-11-25 23:45:32
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I have always found startup profile files of other people both useful and instructive about the language. Moreover, while I have some