Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
^.*\.Rproj$
^\.Rproj\.user$
10 changes: 10 additions & 0 deletions .Rhistory
Original file line number Diff line number Diff line change
@@ -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)
7 changes: 7 additions & 0 deletions .Rproj.user/AB9CBA15/build_options
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 2 additions & 0 deletions .Rproj.user/AB9CBA15/copilot_options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
copilot_enabled="0"
copilot_indexing_enabled="0"
1 change: 1 addition & 0 deletions .Rproj.user/AB9CBA15/cpp-definition-cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
9 changes: 9 additions & 0 deletions .Rproj.user/AB9CBA15/pcs/files-pane.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"sortOrder": [
{
"columnIndex": 2,
"ascending": true
}
],
"path": "//wsl.localhost/Ubuntu/home/tongwei/my.package"
}
3 changes: 3 additions & 0 deletions .Rproj.user/AB9CBA15/pcs/source-pane.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"activeTab": 0
}
14 changes: 14 additions & 0 deletions .Rproj.user/AB9CBA15/pcs/windowlayoutstate.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"left": {
"splitterpos": 334,
"topwindowstate": "NORMAL",
"panelheight": 797,
"windowheight": 835
},
"right": {
"splitterpos": 501,
"topwindowstate": "NORMAL",
"panelheight": 797,
"windowheight": 835
}
}
6 changes: 6 additions & 0 deletions .Rproj.user/AB9CBA15/pcs/workbench-pane.pper
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"TabSet1": 0,
"TabSet2": 0,
"Sidebar": -1,
"TabZoom": {}
}
5 changes: 5 additions & 0 deletions .Rproj.user/AB9CBA15/rmd-outputs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@





1 change: 1 addition & 0 deletions .Rproj.user/AB9CBA15/saved_source_markers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"active_set":"","sets":[]}
27 changes: 27 additions & 0 deletions .Rproj.user/AB9CBA15/sources/per/t/C0DECDAF
Original file line number Diff line number Diff line change
@@ -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": []
}
3 changes: 3 additions & 0 deletions .Rproj.user/AB9CBA15/sources/per/t/C0DECDAF-contents
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
multi <- function(a, b) {
return(a * b)
}
26 changes: 26 additions & 0 deletions .Rproj.user/AB9CBA15/sources/per/t/C4D448AE
Original file line number Diff line number Diff line change
@@ -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"
]
}
27 changes: 27 additions & 0 deletions .Rproj.user/AB9CBA15/sources/per/t/C4D448AE-contents
Original file line number Diff line number Diff line change
@@ -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)

}
26 changes: 26 additions & 0 deletions .Rproj.user/AB9CBA15/sources/per/t/E4103D0B
Original file line number Diff line number Diff line change
@@ -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": []
}
14 changes: 14 additions & 0 deletions .Rproj.user/AB9CBA15/sources/per/t/E4103D0B-contents
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .Rproj.user/AB9CBA15/sources/prop/30438376
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source_window_id": "",
"Source": "Source"
}
7 changes: 7 additions & 0 deletions .Rproj.user/AB9CBA15/sources/prop/75B21307
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"tempName": "Untitled1",
"source_window_id": "",
"Source": "Source",
"cursorPosition": "3,0",
"scrollLine": "0"
}
6 changes: 6 additions & 0 deletions .Rproj.user/AB9CBA15/sources/prop/CF141F83
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"source_window_id": "",
"Source": "Source",
"cursorPosition": "14,0",
"scrollLine": "0"
}
3 changes: 3 additions & 0 deletions .Rproj.user/AB9CBA15/sources/prop/INDEX
Original file line number Diff line number Diff line change
@@ -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"
27 changes: 27 additions & 0 deletions .Rproj.user/AB9CBA15/sources/session-e4c9a144/C0DECDAF
Original file line number Diff line number Diff line change
@@ -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": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
multi <- function(a, b) {
return(a * b)
}
24 changes: 24 additions & 0 deletions .Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE
Original file line number Diff line number Diff line change
@@ -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": []
}
27 changes: 27 additions & 0 deletions .Rproj.user/AB9CBA15/sources/session-e4c9a144/C4D448AE-contents
Original file line number Diff line number Diff line change
@@ -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)

}
26 changes: 26 additions & 0 deletions .Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B
Original file line number Diff line number Diff line change
@@ -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": []
}
14 changes: 14 additions & 0 deletions .Rproj.user/AB9CBA15/sources/session-e4c9a144/E4103D0B-contents
Original file line number Diff line number Diff line change
@@ -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
Empty file.
Empty file.
Empty file.
28 changes: 14 additions & 14 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions R/multiplication.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
multi <- function(a, b) {
return(a * b)
}
Loading