Skip to content

Commit

Permalink
Built package and updated renv.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoFabbri committed Sep 19, 2023
1 parent dab8ef3 commit 6e1dcf2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.html
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ <h1 id="myphd-an-r-package-for-a-phd-in-my-group-"><code>myphd</code>:
<h2 id="installation">Installation</h2>
<p>Install the <em>most recent version</em> from the <code>main</code>
branch on GitHub via <a href="https://CRAN.R-project.org/package=remotes"><code>remotes</code></a>:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">&quot;isglobal-cep/myphd&quot;</span>)</span></code></pre></div>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a>remotes<span class="sc">::</span><span class="fu">install_github</span>(<span class="st">&quot;isglobal-cep/myphd&quot;</span>)</span></code></pre></div>
<hr />
<h2 id="issues">Issues</h2>
<p>If you encounter any bugs or have any specific feature requests,
Expand Down
29 changes: 15 additions & 14 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"Matrix": {
"Package": "Matrix",
"Version": "1.6-0",
"Version": "1.6-1.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -100,7 +100,7 @@
"stats",
"utils"
],
"Hash": "31262fd18481fab05c5e7258dac163ca"
"Hash": "1a00d4828f33a9d690806e98bd17150c"
},
"R6": {
"Package": "R6",
Expand Down Expand Up @@ -1103,17 +1103,18 @@
},
"ggfun": {
"Package": "ggfun",
"Version": "0.1.2",
"Version": "0.1.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"cli",
"ggplot2",
"grid",
"rlang",
"utils"
],
"Hash": "068a90b74406f3abb0647635a2696880"
"Hash": "4657d320971a330ecffd0e1260f58214"
},
"ggimage": {
"Package": "ggimage",
Expand Down Expand Up @@ -1309,7 +1310,7 @@
},
"graphlayouts": {
"Package": "graphlayouts",
"Version": "1.0.0",
"Version": "1.0.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -1318,7 +1319,7 @@
"RcppArmadillo",
"igraph"
],
"Hash": "8e6e2044b72071ae7ea601808887423c"
"Hash": "5da48b0c093d8ac824e41255fb9ba197"
},
"gridExtra": {
"Package": "gridExtra",
Expand Down Expand Up @@ -2084,7 +2085,7 @@
},
"nlme": {
"Package": "nlme",
"Version": "3.1-162",
"Version": "3.1-163",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -2094,7 +2095,7 @@
"stats",
"utils"
],
"Hash": "0984ce8da8da9ead8643c5cbbb60f83e"
"Hash": "8d1938040a05566f4f7a14af4feadd6b"
},
"nloptr": {
"Package": "nloptr",
Expand Down Expand Up @@ -2516,13 +2517,13 @@
},
"renv": {
"Package": "renv",
"Version": "1.0.2",
"Version": "1.0.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"utils"
],
"Hash": "4b22ac016fe54028b88d0c68badbd061"
"Hash": "41b847654f567341725473431dd0d5ab"
},
"rlang": {
"Package": "rlang",
Expand All @@ -2537,7 +2538,7 @@
},
"rmarkdown": {
"Package": "rmarkdown",
"Version": "2.24",
"Version": "2.25",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -2557,7 +2558,7 @@
"xfun",
"yaml"
],
"Hash": "3854c37590717c08c32ec8542a2e0a35"
"Hash": "d65e35823c817f09f4de424fcdfa812a"
},
"rpart": {
"Package": "rpart",
Expand Down Expand Up @@ -2829,7 +2830,7 @@
},
"survival": {
"Package": "survival",
"Version": "3.5-5",
"Version": "3.5-7",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
Expand All @@ -2841,7 +2842,7 @@
"stats",
"utils"
],
"Hash": "d683341b1fa2e8d817efde27d6e6d35b"
"Hash": "b8e943d262c3da0b0febd3e04517c197"
},
"svglite": {
"Package": "svglite",
Expand Down
27 changes: 3 additions & 24 deletions renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
local({

# the requested version of renv
version <- "1.0.2"
version <- "1.0.3"
attr(version, "sha") <- NULL

# the project directory
Expand Down Expand Up @@ -1034,19 +1034,6 @@ local({

}


renv_bootstrap_in_rstudio <- function() {
commandArgs()[[1]] == "RStudio"
}

# Used to work around buglet in RStudio if hook uses readline
renv_bootstrap_flush_console <- function() {
tryCatch({
tools <- as.environment("tools:rstudio")
tools$.rs.api.sendToConsole("", echo = FALSE, focus = FALSE)
}, error = function(cnd) {})
}

renv_json_read <- function(file = NULL, text = NULL) {

jlerr <- NULL
Expand Down Expand Up @@ -1185,16 +1172,8 @@ local({
# construct full libpath
libpath <- file.path(root, prefix)

if (renv_bootstrap_in_rstudio()) {
# RStudio only updates console once .Rprofile is finished, so
# instead run code on sessionInit
setHook("rstudio.sessionInit", function(...) {
renv_bootstrap_exec(project, libpath, version)
renv_bootstrap_flush_console()
})
} else {
renv_bootstrap_exec(project, libpath, version)
}
# run bootstrap code
renv_bootstrap_exec(project, libpath, version)

invisible()

Expand Down

0 comments on commit 6e1dcf2

Please sign in to comment.