Skip to content

Commit 1058f80

Browse files
committed
change package name from arduino to arduinor
1 parent f45b16e commit 1058f80

18 files changed

+52
-72
lines changed

Diff for: .DS_Store

2 KB
Binary file not shown.

Diff for: DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Package: arduino
1+
Package: arduinor
22
Type: Package
33
Title: Simple Library for Reading Serial Ports
44
Version: 0.1

Diff for: NAMESPACE

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ importFrom(plotly,plotlyOutput)
2020
importFrom(plotly,plotlyProxy)
2121
importFrom(plotly,plotlyProxyInvoke)
2222
importFrom(plotly,renderPlotly)
23-
useDynLib(arduino)
23+
useDynLib(arduinor)

Diff for: R/RcppExports.R

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#'
2525
#' @export
2626
ar_init <- function(serialport, baud = 9600L) {
27-
.Call('_arduino_ar_init', PACKAGE = 'arduino', serialport, baud)
27+
.Call('_arduinor_ar_init', PACKAGE = 'arduinor', serialport, baud)
2828
}
2929

3030
#' Check if a file descriptor is still open
@@ -39,7 +39,7 @@ ar_init <- function(serialport, baud = 9600L) {
3939
#' ar_is_open(con)
4040
#' }
4141
ar_is_open <- function(fd) {
42-
.Call('_arduino_ar_is_open', PACKAGE = 'arduino', fd)
42+
.Call('_arduinor_ar_is_open', PACKAGE = 'arduinor', fd)
4343
}
4444

4545
#' Close Connection to a serial port
@@ -56,7 +56,7 @@ ar_is_open <- function(fd) {
5656
#'
5757
#' @export
5858
ar_close <- function(fd) {
59-
.Call('_arduino_ar_close', PACKAGE = 'arduino', fd)
59+
.Call('_arduinor_ar_close', PACKAGE = 'arduinor', fd)
6060
}
6161

6262
#' Read one entry of input from an opened serial connection
@@ -78,7 +78,7 @@ ar_close <- function(fd) {
7878
#'
7979
#' @export
8080
ar_read <- function(fd, eolchar = '\n', buf_max = 256L, timeout = 5000L) {
81-
.Call('_arduino_ar_read', PACKAGE = 'arduino', fd, eolchar, buf_max, timeout)
81+
.Call('_arduinor_ar_read', PACKAGE = 'arduinor', fd, eolchar, buf_max, timeout)
8282
}
8383

8484
#' Flush serial port
@@ -95,6 +95,6 @@ ar_read <- function(fd, eolchar = '\n', buf_max = 256L, timeout = 5000L) {
9595
#'
9696
#' @export
9797
ar_flush <- function(fd) {
98-
.Call('_arduino_ar_flush', PACKAGE = 'arduino', fd)
98+
.Call('_arduinor_ar_flush', PACKAGE = 'arduinor', fd)
9999
}
100100

Diff for: R/arduino-package.R renamed to R/arduinor-package.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#' arduino
1+
#' arduinor
22
#'
3-
#' @name arduino-package
4-
#' @aliases arduino
3+
#' @name arduinor-package
4+
#' @aliases arduinor
55
#' @docType package
66
#' @keywords package
7-
#' @useDynLib arduino
7+
#' @useDynLib arduinor
88
#' @importFrom Rcpp sourceCpp
99
#' @import progress
1010
#' @importFrom glue glue

Diff for: arduino.Rproj renamed to arduinor.Rproj

File renamed without changes.

Diff for: doc/example.R

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
library(arduino)
2+
con <- ar_init("/dev/cu.SLAB_USBtoUART", baud = 57600)
3+
4+
ar_flush_hard(con)
5+
ar_read(con)
6+
ar_plotter(con)

Diff for: man/ar_close.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_collect.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_flush.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_flush_hard.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_is_open.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_monitor.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_plotter.Rd

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/ar_read.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: man/arduino-package.Rd

-11
This file was deleted.

Diff for: man/arduinor-package.Rd

+6-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/RcppExports.cpp

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using namespace Rcpp;
77

88
// ar_init
99
int ar_init(const char* serialport, int baud);
10-
RcppExport SEXP _arduino_ar_init(SEXP serialportSEXP, SEXP baudSEXP) {
10+
RcppExport SEXP _arduinor_ar_init(SEXP serialportSEXP, SEXP baudSEXP) {
1111
BEGIN_RCPP
1212
Rcpp::RObject rcpp_result_gen;
1313
Rcpp::RNGScope rcpp_rngScope_gen;
@@ -19,7 +19,7 @@ END_RCPP
1919
}
2020
// ar_is_open
2121
int ar_is_open(int fd);
22-
RcppExport SEXP _arduino_ar_is_open(SEXP fdSEXP) {
22+
RcppExport SEXP _arduinor_ar_is_open(SEXP fdSEXP) {
2323
BEGIN_RCPP
2424
Rcpp::RObject rcpp_result_gen;
2525
Rcpp::RNGScope rcpp_rngScope_gen;
@@ -30,7 +30,7 @@ END_RCPP
3030
}
3131
// ar_close
3232
int ar_close(int fd);
33-
RcppExport SEXP _arduino_ar_close(SEXP fdSEXP) {
33+
RcppExport SEXP _arduinor_ar_close(SEXP fdSEXP) {
3434
BEGIN_RCPP
3535
Rcpp::RObject rcpp_result_gen;
3636
Rcpp::RNGScope rcpp_rngScope_gen;
@@ -41,7 +41,7 @@ END_RCPP
4141
}
4242
// ar_read
4343
Rcpp::String ar_read(int fd, char eolchar, int buf_max, int timeout);
44-
RcppExport SEXP _arduino_ar_read(SEXP fdSEXP, SEXP eolcharSEXP, SEXP buf_maxSEXP, SEXP timeoutSEXP) {
44+
RcppExport SEXP _arduinor_ar_read(SEXP fdSEXP, SEXP eolcharSEXP, SEXP buf_maxSEXP, SEXP timeoutSEXP) {
4545
BEGIN_RCPP
4646
Rcpp::RObject rcpp_result_gen;
4747
Rcpp::RNGScope rcpp_rngScope_gen;
@@ -55,7 +55,7 @@ END_RCPP
5555
}
5656
// ar_flush
5757
int ar_flush(int fd);
58-
RcppExport SEXP _arduino_ar_flush(SEXP fdSEXP) {
58+
RcppExport SEXP _arduinor_ar_flush(SEXP fdSEXP) {
5959
BEGIN_RCPP
6060
Rcpp::RObject rcpp_result_gen;
6161
Rcpp::RNGScope rcpp_rngScope_gen;
@@ -66,15 +66,15 @@ END_RCPP
6666
}
6767

6868
static const R_CallMethodDef CallEntries[] = {
69-
{"_arduino_ar_init", (DL_FUNC) &_arduino_ar_init, 2},
70-
{"_arduino_ar_is_open", (DL_FUNC) &_arduino_ar_is_open, 1},
71-
{"_arduino_ar_close", (DL_FUNC) &_arduino_ar_close, 1},
72-
{"_arduino_ar_read", (DL_FUNC) &_arduino_ar_read, 4},
73-
{"_arduino_ar_flush", (DL_FUNC) &_arduino_ar_flush, 1},
69+
{"_arduinor_ar_init", (DL_FUNC) &_arduinor_ar_init, 2},
70+
{"_arduinor_ar_is_open", (DL_FUNC) &_arduinor_ar_is_open, 1},
71+
{"_arduinor_ar_close", (DL_FUNC) &_arduinor_ar_close, 1},
72+
{"_arduinor_ar_read", (DL_FUNC) &_arduinor_ar_read, 4},
73+
{"_arduinor_ar_flush", (DL_FUNC) &_arduinor_ar_flush, 1},
7474
{NULL, NULL, 0}
7575
};
7676

77-
RcppExport void R_init_arduino(DllInfo *dll) {
77+
RcppExport void R_init_arduinor(DllInfo *dll) {
7878
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
7979
R_useDynamicSymbols(dll, FALSE);
8080
}

0 commit comments

Comments
 (0)