diff --git a/.Rbuildignore b/.Rbuildignore new file mode 100644 index 0000000..13e458c --- /dev/null +++ b/.Rbuildignore @@ -0,0 +1,2 @@ +^.*\.Rproj$ +^\.Rproj\.user$ diff --git a/.Rhistory b/.Rhistory new file mode 100644 index 0000000..dcdd44e --- /dev/null +++ b/.Rhistory @@ -0,0 +1,10 @@ +multi(5 * 10) +a = 10 +b = 5 +multi(a, b) +multi(5, 10) +multi <- function(a, b) { +return(a * b) +} +multi(5, 10) +multi(a, b) diff --git a/.Rproj.user/AB9CBA15/build_options b/.Rproj.user/AB9CBA15/build_options new file mode 100644 index 0000000..df12568 --- /dev/null +++ b/.Rproj.user/AB9CBA15/build_options @@ -0,0 +1,7 @@ +auto_roxygenize_for_build_and_reload="1" +auto_roxygenize_for_build_package="1" +auto_roxygenize_for_check="1" +live_preview_website="0" +makefile_args="" +preview_website="1" +website_output_format="all" diff --git a/.Rproj.user/AB9CBA15/copilot_options b/.Rproj.user/AB9CBA15/copilot_options new file mode 100644 index 0000000..cd9e9bc --- /dev/null +++ b/.Rproj.user/AB9CBA15/copilot_options @@ -0,0 +1,2 @@ +copilot_enabled="0" +copilot_indexing_enabled="0" diff --git a/.Rproj.user/AB9CBA15/cpp-definition-cache b/.Rproj.user/AB9CBA15/cpp-definition-cache new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/.Rproj.user/AB9CBA15/cpp-definition-cache @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/pcs/files-pane.pper b/.Rproj.user/AB9CBA15/pcs/files-pane.pper new file mode 100644 index 0000000..67c7e1d --- /dev/null +++ b/.Rproj.user/AB9CBA15/pcs/files-pane.pper @@ -0,0 +1,9 @@ +{ + "sortOrder": [ + { + "columnIndex": 2, + "ascending": true + } + ], + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package" +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/pcs/source-pane.pper b/.Rproj.user/AB9CBA15/pcs/source-pane.pper new file mode 100644 index 0000000..902cc6f --- /dev/null +++ b/.Rproj.user/AB9CBA15/pcs/source-pane.pper @@ -0,0 +1,3 @@ +{ + "activeTab": 0 +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/pcs/windowlayoutstate.pper b/.Rproj.user/AB9CBA15/pcs/windowlayoutstate.pper new file mode 100644 index 0000000..2020128 --- /dev/null +++ b/.Rproj.user/AB9CBA15/pcs/windowlayoutstate.pper @@ -0,0 +1,14 @@ +{ + "left": { + "splitterpos": 334, + "topwindowstate": "NORMAL", + "panelheight": 797, + "windowheight": 835 + }, + "right": { + "splitterpos": 501, + "topwindowstate": "NORMAL", + "panelheight": 797, + "windowheight": 835 + } +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/pcs/workbench-pane.pper b/.Rproj.user/AB9CBA15/pcs/workbench-pane.pper new file mode 100644 index 0000000..5376481 --- /dev/null +++ b/.Rproj.user/AB9CBA15/pcs/workbench-pane.pper @@ -0,0 +1,6 @@ +{ + "TabSet1": 0, + "TabSet2": 0, + "Sidebar": -1, + "TabZoom": {} +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/rmd-outputs b/.Rproj.user/AB9CBA15/rmd-outputs new file mode 100644 index 0000000..3f2ff2d --- /dev/null +++ b/.Rproj.user/AB9CBA15/rmd-outputs @@ -0,0 +1,5 @@ + + + + + diff --git a/.Rproj.user/AB9CBA15/saved_source_markers b/.Rproj.user/AB9CBA15/saved_source_markers new file mode 100644 index 0000000..2b1bef1 --- /dev/null +++ b/.Rproj.user/AB9CBA15/saved_source_markers @@ -0,0 +1 @@ +{"active_set":"","sets":[]} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/per/t/C0DECDAF b/.Rproj.user/AB9CBA15/sources/per/t/C0DECDAF new file mode 100644 index 0000000..d2eaaac --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/per/t/C0DECDAF @@ -0,0 +1,27 @@ +{ + "id": "C0DECDAF", + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package/R/multiplication.R", + "project_path": "R/multiplication.R", + "type": "r_source", + "hash": "139293800", + "contents": "", + "dirty": false, + "created": 1770428466651.0, + "source_on_save": false, + "relative_order": 3, + "properties": { + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "3,0", + "scrollLine": "0" + }, + "folds": "", + "lastKnownWriteTime": 1770428607, + "encoding": "UTF-8", + "collab_server": "", + "source_window": "", + "last_content_update": 1770428607528, + "read_only": false, + "read_only_alternatives": [] +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/per/t/C0DECDAF-contents b/.Rproj.user/AB9CBA15/sources/per/t/C0DECDAF-contents new file mode 100644 index 0000000..5f0cdc2 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/per/t/C0DECDAF-contents @@ -0,0 +1,3 @@ +multi <- function(a, b) { + return(a * b) +} diff --git a/.Rproj.user/AB9CBA15/sources/per/t/C4D448AE b/.Rproj.user/AB9CBA15/sources/per/t/C4D448AE new file mode 100644 index 0000000..6088741 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/per/t/C4D448AE @@ -0,0 +1,26 @@ +{ + "id": "C4D448AE", + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package/man/add.Rd", + "project_path": "man/add.Rd", + "type": "r_doc", + "hash": "2546966182", + "contents": "", + "dirty": false, + "created": 1770428433117.0, + "source_on_save": false, + "relative_order": 2, + "properties": { + "source_window_id": "", + "Source": "Source" + }, + "folds": "", + "lastKnownWriteTime": 1770428054, + "encoding": "UTF-8", + "collab_server": "", + "source_window": "", + "last_content_update": 1770428054, + "read_only": true, + "read_only_alternatives": [ + "R/add.R" + ] +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/per/t/C4D448AE-contents b/.Rproj.user/AB9CBA15/sources/per/t/C4D448AE-contents new file mode 100644 index 0000000..8c44358 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/per/t/C4D448AE-contents @@ -0,0 +1,27 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/add.R +\name{add} +\alias{add} +\title{This is my addition function} +\usage{ +add(x, y) +} +\arguments{ +\item{x}{this is the first value to add} + +\item{y}{this is the second value to add} +} +\value{ +This function returns the sum of x and y +} +\description{ +This is my addition function +} +\examples{ +## Start with something simple +add(1,1) + +## Now something more difficult +add(49,60) + +} diff --git a/.Rproj.user/AB9CBA15/sources/per/t/E4103D0B b/.Rproj.user/AB9CBA15/sources/per/t/E4103D0B new file mode 100644 index 0000000..c528356 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/per/t/E4103D0B @@ -0,0 +1,26 @@ +{ + "id": "E4103D0B", + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package/DESCRIPTION", + "project_path": "DESCRIPTION", + "type": "dcf", + "hash": "83416843", + "contents": "", + "dirty": false, + "created": 1770428351810.0, + "source_on_save": false, + "relative_order": 1, + "properties": { + "source_window_id": "", + "Source": "Source", + "cursorPosition": "14,0", + "scrollLine": "0" + }, + "folds": "", + "lastKnownWriteTime": 1770428909, + "encoding": "UTF-8", + "collab_server": "", + "source_window": "", + "last_content_update": 1770428909453, + "read_only": false, + "read_only_alternatives": [] +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/per/t/E4103D0B-contents b/.Rproj.user/AB9CBA15/sources/per/t/E4103D0B-contents new file mode 100644 index 0000000..864dd05 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/per/t/E4103D0B-contents @@ -0,0 +1,14 @@ +Package: my.package +Title: This is my first R package +Version: 0.0.0.9000 +Authors@R: + person(given = "Tongwei", + family = "Zhang", + role = c("aut", "cre"), + email = "tz415@gsbs.rutgers.edu", + comment = c(ORCID = "YOUR-ORCID-ID")) +Description: This is my new package to do addition, subtraction, and multiplication +License: Artistic 2.0 +Encoding: UTF-8 +LazyData: true +RoxygenNote: 7.0.0 diff --git a/.Rproj.user/AB9CBA15/sources/prop/30438376 b/.Rproj.user/AB9CBA15/sources/prop/30438376 new file mode 100644 index 0000000..bb27690 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/prop/30438376 @@ -0,0 +1,4 @@ +{ + "source_window_id": "", + "Source": "Source" +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/prop/75B21307 b/.Rproj.user/AB9CBA15/sources/prop/75B21307 new file mode 100644 index 0000000..390d5e2 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/prop/75B21307 @@ -0,0 +1,7 @@ +{ + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "3,0", + "scrollLine": "0" +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/prop/CF141F83 b/.Rproj.user/AB9CBA15/sources/prop/CF141F83 new file mode 100644 index 0000000..01b8fef --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/prop/CF141F83 @@ -0,0 +1,6 @@ +{ + "source_window_id": "", + "Source": "Source", + "cursorPosition": "14,0", + "scrollLine": "0" +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/prop/INDEX b/.Rproj.user/AB9CBA15/sources/prop/INDEX new file mode 100644 index 0000000..ff351dc --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/prop/INDEX @@ -0,0 +1,3 @@ +%2F%2Fwsl.localhost%2FUbuntu%2Fhome%2Ftongwei%2Fmy.package%2FDESCRIPTION="CF141F83" +%2F%2Fwsl.localhost%2FUbuntu%2Fhome%2Ftongwei%2Fmy.package%2FR%2Fmultiplication.R="75B21307" +%2F%2Fwsl.localhost%2FUbuntu%2Fhome%2Ftongwei%2Fmy.package%2Fman%2Fadd.Rd="30438376" diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF new file mode 100644 index 0000000..9bcce65 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF @@ -0,0 +1,27 @@ +{ + "id": "C0DECDAF", + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package/R/multiplication.R", + "project_path": "R/multiplication.R", + "type": "r_source", + "hash": "0", + "contents": "", + "dirty": false, + "created": 1770428466651.0, + "source_on_save": false, + "relative_order": 3, + "properties": { + "tempName": "Untitled1", + "source_window_id": "", + "Source": "Source", + "cursorPosition": "3,0", + "scrollLine": "0" + }, + "folds": "", + "lastKnownWriteTime": 1770428607, + "encoding": "UTF-8", + "collab_server": "", + "source_window": "", + "last_content_update": 1770428607528, + "read_only": false, + "read_only_alternatives": [] +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF-contents b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF-contents new file mode 100644 index 0000000..5f0cdc2 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF-contents @@ -0,0 +1,3 @@ +multi <- function(a, b) { + return(a * b) +} diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE new file mode 100644 index 0000000..4b38e9c --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE @@ -0,0 +1,24 @@ +{ + "id": "C4D448AE", + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package/man/add.Rd", + "project_path": "man/add.Rd", + "type": "r_doc", + "hash": "0", + "contents": "", + "dirty": false, + "created": 1770428433117.0, + "source_on_save": false, + "relative_order": 2, + "properties": { + "source_window_id": "", + "Source": "Source" + }, + "folds": "", + "lastKnownWriteTime": 1770428054, + "encoding": "UTF-8", + "collab_server": "", + "source_window": "", + "last_content_update": 1770428054, + "read_only": false, + "read_only_alternatives": [] +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE-contents b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE-contents new file mode 100644 index 0000000..8c44358 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE-contents @@ -0,0 +1,27 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/add.R +\name{add} +\alias{add} +\title{This is my addition function} +\usage{ +add(x, y) +} +\arguments{ +\item{x}{this is the first value to add} + +\item{y}{this is the second value to add} +} +\value{ +This function returns the sum of x and y +} +\description{ +This is my addition function +} +\examples{ +## Start with something simple +add(1,1) + +## Now something more difficult +add(49,60) + +} diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B new file mode 100644 index 0000000..c528356 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B @@ -0,0 +1,26 @@ +{ + "id": "E4103D0B", + "path": "//wsl.localhost/Ubuntu/home/tongwei/my.package/DESCRIPTION", + "project_path": "DESCRIPTION", + "type": "dcf", + "hash": "83416843", + "contents": "", + "dirty": false, + "created": 1770428351810.0, + "source_on_save": false, + "relative_order": 1, + "properties": { + "source_window_id": "", + "Source": "Source", + "cursorPosition": "14,0", + "scrollLine": "0" + }, + "folds": "", + "lastKnownWriteTime": 1770428909, + "encoding": "UTF-8", + "collab_server": "", + "source_window": "", + "last_content_update": 1770428909453, + "read_only": false, + "read_only_alternatives": [] +} \ No newline at end of file diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B-contents b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B-contents new file mode 100644 index 0000000..864dd05 --- /dev/null +++ b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B-contents @@ -0,0 +1,14 @@ +Package: my.package +Title: This is my first R package +Version: 0.0.0.9000 +Authors@R: + person(given = "Tongwei", + family = "Zhang", + role = c("aut", "cre"), + email = "tz415@gsbs.rutgers.edu", + comment = c(ORCID = "YOUR-ORCID-ID")) +Description: This is my new package to do addition, subtraction, and multiplication +License: Artistic 2.0 +Encoding: UTF-8 +LazyData: true +RoxygenNote: 7.0.0 diff --git a/.Rproj.user/AB9CBA15/sources/session-e4c9a144/lock_file b/.Rproj.user/AB9CBA15/sources/session-e4c9a144/lock_file new file mode 100644 index 0000000..e69de29 diff --git a/.Rproj.user/shared/notebooks/lock_file b/.Rproj.user/shared/notebooks/lock_file new file mode 100644 index 0000000..e69de29 diff --git a/.Rproj.user/shared/notebooks/patch-chunk-names b/.Rproj.user/shared/notebooks/patch-chunk-names new file mode 100644 index 0000000..e69de29 diff --git a/DESCRIPTION b/DESCRIPTION index a5e6300..d176fd6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,14 +1,14 @@ -Package: my.package -Title: This is my first R package -Version: 0.0.0.9000 -Authors@R: - person(given = "Evan", - family = "Johnson", - role = c("aut", "cre"), - email = "wevanjohnson@gmail.com", - comment = c(ORCID = "YOUR-ORCID-ID")) -Description: This is my new package to do addition, subtraction, and multiplication -License: Artistic 2.0 -Encoding: UTF-8 -LazyData: true -RoxygenNote: 7.0.0 +Package: my.package +Title: This is my first R package +Version: 0.0.0.9000 +Authors@R: + person(given = "Tongwei", + family = "Zhang", + role = c("aut", "cre"), + email = "tz415@gsbs.rutgers.edu", + comment = c(ORCID = "YOUR-ORCID-ID")) +Description: This is my new package to do addition, subtraction, and multiplication +License: Artistic 2.0 +Encoding: UTF-8 +LazyData: true +RoxygenNote: 7.0.0 diff --git a/R/multiplication.R b/R/multiplication.R new file mode 100644 index 0000000..8e373f1 --- /dev/null +++ b/R/multiplication.R @@ -0,0 +1,3 @@ +multi <- function(a, b) { + return(a * b) +} diff --git a/my.package.Rproj b/my.package.Rproj index cba1b6b..08d5ab1 100644 --- a/my.package.Rproj +++ b/my.package.Rproj @@ -1,21 +1,21 @@ -Version: 1.0 - -RestoreWorkspace: No -SaveWorkspace: No -AlwaysSaveHistory: Default - -EnableCodeIndexing: Yes -UseSpacesForTab: Yes -NumSpacesForTab: 2 -Encoding: UTF-8 - -RnwWeave: Sweave -LaTeX: pdfLaTeX - -AutoAppendNewline: Yes -StripTrailingWhitespace: Yes - -BuildType: Package -PackageUseDevtools: Yes -PackageInstallArgs: --no-multiarch --with-keep.source -PackageRoxygenize: rd,collate,namespace +Version: 1.0 + +RestoreWorkspace: No +SaveWorkspace: No +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX + +AutoAppendNewline: Yes +StripTrailingWhitespace: Yes + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source +PackageRoxygenize: rd,collate,namespace