-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
1,615 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,61 @@ | ||
# nolint start | ||
source("renv/activate.R") | ||
|
||
a <- try(suppressWarnings(source(file.path( | ||
Sys.getenv(if (.Platform$OS.type == "windows") { | ||
"USERPROFILE" | ||
} else { | ||
"HOME" | ||
}), | ||
".vscode-R", | ||
"init.R" | ||
))), | ||
silent = TRUE | ||
) | ||
if (Sys.getenv("CI") == "") { # not CI | ||
|
||
rm(a) | ||
if (Sys.getenv("RSTUDIO") == "") { | ||
suppressMessages(if (requireNamespace("languageserver")) { | ||
a <- try(suppressWarnings(source(file.path( | ||
Sys.getenv(if (.Platform$OS.type == "windows") { | ||
"USERPROFILE" | ||
} else { | ||
"HOME" | ||
}), | ||
".vscode-R", | ||
"init.R" | ||
))), | ||
silent = TRUE | ||
) | ||
|
||
if (interactive()) { | ||
suppressMessages(suppressWarnings(require(testthat))) | ||
suppressMessages(require(devtools)) | ||
suppressMessages(require(usethis)) | ||
suppressMessages(require(conflicted)) | ||
# suppressMessages(prettycode::prettycode()) | ||
rm(a) | ||
}) | ||
} | ||
|
||
options( | ||
warnPartialMatchArgs = FALSE, | ||
warnPartialMatchDollar = FALSE, | ||
warnPartialMatchAttr = FALSE, | ||
usethis.protocol = "https" | ||
# error = recover | ||
) | ||
if (interactive()) { | ||
options( | ||
warnPartialMatchArgs = FALSE, | ||
warnPartialMatchDollar = FALSE, | ||
warnPartialMatchAttr = FALSE, | ||
usethis.protocol = "https", | ||
vsc.rstudioapi = TRUE | ||
# error = recover | ||
) | ||
|
||
suppressMessages( | ||
suppressWarnings({ | ||
require("testthat", quietly = TRUE) | ||
require("devtools", quietly = TRUE) | ||
require("usethis", quietly = TRUE) | ||
require("conflicted", quietly = TRUE) | ||
require("here", quietly = TRUE) | ||
}) | ||
) | ||
# suppressMessages(prettycode::prettycode()) | ||
|
||
suppressMessages(if (requireNamespace("prompt")) { | ||
prompt::set_prompt(function(...) { | ||
paste0( | ||
"[", | ||
prompt::git_branch(), | ||
prompt::git_dirty(), | ||
prompt::git_arrows(), | ||
"] ", | ||
prompt::prompt_runtime() | ||
) | ||
}) | ||
}) | ||
if (suppressMessages(requireNamespace("prompt", quietly = TRUE))) { | ||
prompt::set_prompt(function(...) { | ||
paste0( | ||
"[", | ||
prompt::git_branch(), | ||
prompt::git_dirty(), | ||
prompt::git_arrows(), | ||
"] ", | ||
prompt::prompt_runtime() | ||
) | ||
}) | ||
} | ||
} | ||
} else { # is CI | ||
message("Running .RProfile in CI") | ||
} | ||
# nolint end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# Prework | ||
# My Pull Request Title | ||
|
||
* [ ] I understand and agree to the [code of conduct](https://github.com/wlandau/targets/blob/main/CODE_OF_CONDUCT.md) and the [contributing guidelines](https://github.com/wlandau/targets/blob/main/CONTRIBUTING.md). | ||
* [ ] I have already submitted an issue to the [issue tracker](http://github.com/wlandau/targets/issues) to discuss my idea with the maintainer. | ||
* [ ] This pull request is not a [draft](https://github.blog/2019-02-14-introducing-draft-pull-requests). | ||
## Prework | ||
|
||
# Related GitHub issues and pull requests | ||
* [ ] I understand and agree to the [code of conduct](CODE_OF_CONDUCT.md) and the [contributing guidelines](CONTRIBUTING.md). | ||
* [ ] I have already submitted an issue to the [issue tracker](https://github.com/matrix-profile-foundation/matrixprofiler/issues) to discuss my idea with the maintainer. | ||
* [ ] This pull request is not a [draft](https://github.blog/2019-02-14-introducing-draft-pull-requests). | ||
|
||
* Ref: # | ||
## Related GitHub issues and pull requests | ||
|
||
# Summary | ||
* Ref: # | ||
|
||
## Summary | ||
|
||
Please explain the purpose and scope of your contribution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,4 @@ Rplots.pdf | |
README.html | ||
|
||
workspace.RData | ||
.history |
Oops, something went wrong.